Repository navigation
Conversation
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>
|
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? |
|
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.)
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. :) |
|
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. |
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