this post was submitted on 18 Jul 2023
4 points (100.0% liked)

PC Gaming

11 readers
1 users here now

Discuss Games, Hardware and News on PC Gaming **Discord** https://discord.gg/4bxJgkY **Mastodon** https://cupoftea.social **Donate** https://ko-fi.com/cupofteasocial **Wiki** https://www.pcgamingwiki.com

founded 1 year ago
 

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!

you are viewing a single comment's thread
view the rest of the comments
[–] Whiskeyomega@kbin.social 1 points 1 year ago

Dave The Diver has this problem currently and as someone with alot of desktop space in the form of 8K and 4K side this is a useful tool