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!

  • breno@lemmy.fmhy.ml
    link
    fedilink
    arrow-up
    2
    ·
    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.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      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