Skip to content

feat(mouse): add right-click camera sensitivity setting - #2767

Closed
jmctune wants to merge 2 commits into
gwdevhub:devfrom
jmctune:feat/camera-look-sensitivity
Closed

jmctune wants to merge 2 commits into
gwdevhub:devfrom
jmctune:feat/camera-look-sensitivity

Conversation

@jmctune

@jmctune jmctune commented Nov 26, 2026 •

Copy link
Copy Markdown

Holding right click and moving the mouse turns the camera, but even at the in-game maximum rotation speed it is slow. Mouse Settings now has a "Right-click camera sensitivity" slider (0.5x-5x, default 1x).

The ProcessInput hook is now installed independently of the disabled camera-glitch fix. It forwards to the original function and scales the mouse-look deltas it produces, carrying fractional remainders so slow movement isn't lost. Scaling only applies to mouse-look events while the camera is captured, and never in controller mode. The disabled camera fix is restructured to share the same hook.

The mouse-look event id stays hard-coded at 0x11 (see #2505).

Checked against AGENTS.md

jmctune and others added 2 commits November 25, 2026 22:29
Holding right click and moving the mouse turns the camera, but even at
the in-game maximum rotation speed it is slow. Mouse Settings now has a
"Right-click camera sensitivity" slider (0.5x-5x, default 1x).

The ProcessInput hook is now installed independently of the disabled
camera-glitch fix. It forwards to the original function and scales the
mouse-look deltas it produces, carrying fractional remainders so slow
movement isn't lost. Scaling only applies to WM_MOUSEMOVE-derived
mouse-look events while the camera is captured, and never in controller
mode. The disabled camera fix is restructured to share the same hook.

The mouse-look event id stays hard-coded at 0x11 (see #2505).

Checked against AGENTS.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@3vcloud

3vcloud commented Nov 26, 2026

Copy link
Copy Markdown
Member

Why didn't you just patch the camera rotation speed setting that's already in the game? It looks like you've just rebuilt the games behaviour instead of patching the scale setting?

@jmctune

jmctune commented Nov 26, 2026

Copy link
Copy Markdown
Author

Hey there, thanks for reviewing my change.

I did a bit of testing and couldn't get the game to read any value outside of its supported range (camera rotation speed writes a range of 25-175, which I validated from adjusting the slider and saving settings to disk through toolbox > Guild Wars Settings.)

  • Saving settings, editing CameraRotationSpeed in the dumped json and loading it back moves the slider, but doesn't change the camera's rotation speed. It only takes effect after a client restart, so the camera seems to read the preference once at startup. Dragging the slider (probably) also pushes the value to wherever the camera caches it.
  • I also tried a temporary chat command that calls SetPreference and then sends kPreferenceValueChanged. The slider moves, but the camera speed still doesn't change live.
  • Any value outside the range (e.g. 500) gets reset to 25, both when set at runtime and when loaded on startup.

So patching the setting would take additional reversing to find where the camera caches its speed, plus something to bypass the range check (unless you already know where those are).

On the rebuilt behaviour point: the hook doesn't re-implement rotation. It calls the original ProcessInput and multiplies the mouse-look deltas the game already produced, so the in-game speed setting still applies and this stacks on top.

I'm new to this project overall and was just looking for a way to get my mouse rotation to speed up as it's almost unplayable for me needing to drag my mouse three times across my mouse pad to do a full 360. :)

@3vcloud

3vcloud commented Nov 26, 2026

Copy link
Copy Markdown
Member

Closing in favour of d67747b (feat(camera): add camera speed multiplier for right-click rotation). That commit hooks the function that writes the camera rotate speed and scales it with a Camera Settings multiplier, instead of rescaling mouse-look deltas.

@3vcloud 3vcloud closed this Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants