Cursor Lock Keys for Windows icon

Cursor Lock Keys for Windows

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.

Get it on the Elgato Marketplace

Stream Deck plugin · Works on Windows 10 or later with the Stream Deck app 6.9 or later.

What you can do

How it works

  1. Install the plugin from the Elgato Marketplace. In the Stream Deck app, drag Lock to Monitor (or Lock to Window) onto a key.
  2. No setup is needed. If you like, choose a screen and a hold-to-leave key in the key's settings.
  3. 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.

Get Cursor Lock Keys for Windows on the Elgato Marketplace

Questions

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