So let me get this straight...
The task is really simple: if you have a full-screen program open (essentially a game), lock the mouse to the main monitor. If the game is closed or minimized, unlock the mouse automatically.
At the time of writing, none of the free programs listed here do this, and the only program which claims that can do it costs $10.
So I wrote my own:
- Free and open-source
- Tiny, 8KB EXE
- No installation, no configuration, no dependencies - start and forget it!
- Activates when and only when it's needed, so should not get in your way
Source code: https://github.com/CyberShadow/AutoMouseLock
Compiled .exe: http://files.thecybershadow.net/AutoMouseLock/https://files.thecybershadow.net/AutoMouseLock/