Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "Glossary:Mouse locking"

From PCGamingWiki, the wiki about fixing PC games
(→‎Windows: Cleaned up section. Moved Special K to the top as it is a general-purpose fix compatible with most modern games. The rest is sorted based on relevance and support for modern OSes.)
m (Fixed typos)
Line 1: Line 1:
{{ii}} Certain games do not lock the mouse inside the actual window, this can result in some rather annoying behaviour on multiple screens or while playing in window mode.
+
{{ii}} Certain games do not lock the mouse inside the actual window, this can result in some rather annoying behaviour on multiple screens or while playing in windowed mode.
  
 
'''Mouse locking''' refers to constraining the mouse cursor within the window of a game. This is to prevent accidental clicks while the cursor is outside of the game window, causing it to lose focus or possibly even worse. Most games automatically lock the cursor, but for some titles this must be forced through a third-party alternative.
 
'''Mouse locking''' refers to constraining the mouse cursor within the window of a game. This is to prevent accidental clicks while the cursor is outside of the game window, causing it to lose focus or possibly even worse. Most games automatically lock the cursor, but for some titles this must be forced through a third-party alternative.
Line 6: Line 6:
  
 
===[[Special K]]===
 
===[[Special K]]===
{{++}} Easy to configure in-game GUI. Allows for restricting the mouse cursor in both exclusive fullscreen mode as well as windowed modes.  
+
{{++}} Easy to configure in-game GUI. Allows for restricting the mouse cursor in both exclusive fullscreen as well as windowed modes.  
 
{{--}} Requires games to use an API Special K supports, making it incompatible with some games.
 
{{--}} Requires games to use an API Special K supports, making it incompatible with some games.
 
{{Fixbox|description=See [[Special K#Mouse locking|Special K > Mouse locking]] for instructions.}}
 
{{Fixbox|description=See [[Special K#Mouse locking|Special K > Mouse locking]] for instructions.}}
Line 18: Line 18:
 
{{--}} Program doesn't see windows that were opened subsequently.
 
{{--}} Program doesn't see windows that were opened subsequently.
  
===[http://dualmonitortool.sourceforge.net/dmt_swapscreen.html Dual Monitor Tools - Swap Screen]===
+
===[http://dualmonitortool.sourceforge.net/dmt_swapscreen.html Dual Monitor Tools]===
{{Fixbox|description=Use Swap Screen from Dual Monitor Tools|fix=
+
{{Fixbox|description=Use Dual Monitor Tools|fix=
 
# Download Dual Monitor Tools from [http://dualmonitortool.sourceforge.net/download.html here], extract to any folder.
 
# Download Dual Monitor Tools from [http://dualmonitortool.sourceforge.net/download.html here], extract to any folder.
# Launch {{file|SwapScreen.exe}}
+
# Launch {{file|DMT.exe}}
# Under the cursor tab, set the hotkeys for '''Cursor free to move between screens''', and '''Lock Cursor onto screen'''.
+
# Under the Cursor tab, set the hotkeys for '''Cursor free to move between screens''', and '''Lock cursor onto screen'''.
# Uncheck '''Allow cursor to move freely if the left Control key is pressed'''.  
+
# Uncheck '''Allow cursor to move freely if this key is pressed''' and '''Allow cursor to move freely if this button is pressed'''.  
 
}}
 
}}
  

Revision as of 18:24, 31 January 2019

Certain games do not lock the mouse inside the actual window, this can result in some rather annoying behaviour on multiple screens or while playing in windowed mode.

Mouse locking refers to constraining the mouse cursor within the window of a game. This is to prevent accidental clicks while the cursor is outside of the game window, causing it to lose focus or possibly even worse. Most games automatically lock the cursor, but for some titles this must be forced through a third-party alternative.

Windows

Special K

Easy to configure in-game GUI. Allows for restricting the mouse cursor in both exclusive fullscreen as well as windowed modes.
Requires games to use an API Special K supports, making it incompatible with some games.
See Special K > Mouse locking for instructions.

Borderless Gaming

Global hotkey (Scroll lock) for locking the cursor.
Lacks automatic cursor lock during game focus.

Clip Cursor

Allows locking the cursor to any running applications.
Program doesn't see windows that were opened subsequently.

Dual Monitor Tools

Use Dual Monitor Tools
  1. Download Dual Monitor Tools from here, extract to any folder.
  2. Launch DMT.exe
  3. Under the Cursor tab, set the hotkeys for Cursor free to move between screens, and Lock cursor onto screen.
  4. Uncheck Allow cursor to move freely if this key is pressed and Allow cursor to move freely if this button is pressed.

Cursor Lock

Latest version released in 2013 brought with it support for Windows Vista and 7. Support for newer operating systems and games might therefor not be high.
Use Cursor Lock
  1. Download and open Cursor Lock.
  2. Select Program Mode on the first tab.
  3. Set the executable of the game in the Open Program field.
  4. Click Create Shortcut, and run the game using this shortcut.

MouseJail

Latest version was released 2002. Compatibility with modern games and operating systems might therefor not be high.
Use MouseJail
  1. Download MouseJail from here.
  2. Copy MouseJail.exe to the Windows directory (C:\WinNT or C:\Windows) or in a directory accessible in the PATH environment variable.
  3. Insert MouseJail.exe at the start of the Target field of a shortcut to the game.


References