Skip Navigation

A universal fix for the mouse not being locked to a games window when using multiple monitors

github.com GitHub - blaberry/FullscreenLock: Like AKADEVILs PrimaryLock, but different.

Like AKADEVILs PrimaryLock, but different. Contribute to blaberry/FullscreenLock development by creating an account on GitHub.

GitHub - blaberry/FullscreenLock: Like AKADEVILs PrimaryLock, but different.

So back when I wrote this program, I promoted it on reddit and discord and other places. I figured since their days are probably numbered, I'd share it on here as well.

Basically, a couple years ago I wrote a program that locks the cursor to any fullscreen window while that window is in focus. This is handy for games if you have multiple monitors, as some games don't lock the cursor, or instead of doing the right thing (issuing a win32 call to lock the cursor to the window of the game while it's in focus), they have come up with their own shitty hacks, such as recentering the cursor every 50ms (looking at you, CSGO...) which works great until you need to hit a flick, drag your mouse a long way very quickly, and instead of nailing someone in the head, you end up alt-tabbing and losing the round.

Here's the link: https://github.com/blaberry/FullscreenLock

It's free of course, in any sense of the word.

Enjoy!

3
3 comments