Welcome, Guest.
Username: Password: Remember me

TOPIC: Locked Mouse Solution

Locked Mouse Solution 2 months 1 week ago #1

I was wondering, technically, how does Reshade detect and handle FPS games that lock the mouse, for example Skyrim? I've looked at the source, still unsure of the solution.

Thanks.
The administrator has disabled public write access.

Locked Mouse Solution 2 months 1 week ago #2

input.cpp => HookSetCursorPosition. As long as input blocking is enabled, this intercepts any attempts of the game to reset the mouse cursor to the center of the screen and ignores them.
Cheers, crosire =)
The administrator has disabled public write access.

Locked Mouse Solution 2 months 3 days ago #3

While we're on the subject, this doesn't work for me in Fallout 4.
When in-game (not in some kind of menu) and the overlay is visible, the game still prevents the mouse from exiting a 50% wide and tall region in the center of the screen.

Thus it is currently quite cumbersome to iterate on shader code, as I have to
- (Task switch to game obviously)
- Press ESC to leave gameplay (so that the overlay will work)
- Open overlay
- Click reload
- Close overlay
- Press ESC again to return to gameplay

Irregardless of this issue, I would like to have a hotkey for reloading the shaders :)
The administrator has disabled public write access.

Locked Mouse Solution 2 months 2 days ago #4

Cheers, crosire =)
The administrator has disabled public write access.
The following user(s) said Thank You: Ruuttu

Locked Mouse Solution 1 month 3 weeks ago #5

Have this same problem with No Man's Sky Next. Again, what do I do with the code at the link you provided? Sorry I'm clueless.
The administrator has disabled public write access.