3
submitted 1 year ago* (last edited 1 year ago) by Naemonogatari@lemmy.world to c/PCGaming@kbin.social

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!

top 3 comments
sorted by: hot top controversial new old
[-] Breno@lemmy.fmhy.ml 2 points 1 year ago

Am I missing something here but doesn't every game have (exclusive) full screen option? It's usually borderless windowed is sometimes not an option which is best for when you DO want to move over to another screen. Otherwise you are locked to one screen.

[-] Naemonogatari@lemmy.world 2 points 1 year ago

Most games do have exclusive fullscreen which doesn't suffer from this problem most of the time, but depending on how the game handles alt-tabbing and such, it might not be an ideal solution

[-] 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

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

PC Gaming

23 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