Lock your mouse to one monitor from a Stream Deck key
To lock the mouse to one monitor from a Stream Deck, add Cursor Lock Keys for Windows and press its Lock to Monitor key: the pointer stays on that screen. On a dual monitor PC, the mouse stays on your game or work instead of slipping onto the other display, and a second press unlocks it.
Stream Deck plugin · Works on Windows 10 or later with the Stream Deck app 6.9 or later.
What you can do
Keep the mouse on one screen: Lock to Monitor holds it on the screen it is on, or on a screen you choose.
Keep the mouse inside a window: Lock to Window holds it inside the active window, such as a borderless game.
Jump screens with a key: Cursor to Monitor moves the pointer to the middle of the next screen.
Step out for a moment: hold Ctrl, Alt or Shift to let the pointer out, and the lock comes back when you let go.
Stays locked as you play: the lock is set again ten times a second, since Windows drops it when you switch windows.
See the state: the key shows LOCKED with the name of the screen or window, read from what Windows reports.
Built-in safety: the lock ends by itself when the screen layout changes, the PC wakes from sleep, the window closes, the lock keys leave the visible page, or Stream Deck quits. A helper process releases the pointer if the plugin is killed.
Runs on your PC; nothing is recorded or sent anywhere.
English and Japanese.
How it works
Install the plugin from the Elgato Marketplace. In the Stream Deck app, drag Lock to Monitor (or Lock to Window) onto a key.
No setup is needed. If you like, choose a screen and a hold-to-leave key in the key's settings.
Press the key to lock the pointer, and press it again to unlock it.
The plugin uses the Windows function ClipCursor, which limits where the mouse pointer can go, and sets it again ten times a second.
How do I lock my mouse to one monitor with a Stream Deck?
Add a Lock to Monitor key and press it. The pointer stays on the screen it is on (or on the screen you chose in the settings) and cannot slide onto the screen next to it. Press the key again to unlock it.
Can I lock the mouse inside a game window?
Yes. Lock to Window holds the pointer inside the window that is in front when you press, for example a game in a borderless window. While another window is in front, the pointer moves normally and the key says PAUSED; when the game is in front again, the lock is back.
Does it change how my game camera moves?
It limits the pointer only. If a game's camera stops at the edge of the screen, or a click lands on the other screen, the pointer was the cause and a lock can help. Camera movement a game reads directly from the mouse (Raw Input) is unchanged.
Why does the key say NOT HELD in my game?
The game sets its own pointer limit. The plugin leaves a limit that another program set alone, and locks again when the game lets go of it.
What if the pointer stays confined?
Press the lock key again. If the key does not react, quit the Stream Deck app: the plugin releases the pointer when it exits, and a helper process releases it if the plugin is killed.
Limits
Windows only (Windows 10 or later). Not for Mac.
Lock to Monitor is for PCs with two or more screens.
A game that confines the pointer itself can override the lock; the key then says NOT HELD.
It limits the pointer only; camera movement a game reads directly from the mouse (Raw Input) is unchanged.
Games in exclusive full-screen mode usually handle the pointer themselves, so a lock may not take effect there.
Games with anti-cheat software: online games can have their own rules about tools that act on the mouse, so check them before you use one with such a game.