Nucleus handler tools โบ Docs โบ Game โบ HookSetCursorPos
Game.HookSetCursorPos
Open in the workbench (search, and try it in a handler)
Game.HookSetCursorPos: boolean
Deprecated: use Proto Input instead (see https://www.splitscreen.me/docs/proto).
This will hook the SetCursorPos Windows function which the game may use to set the mouse position.
This is useful to have on to prevent the game from moving the 'real' Windows mouse cursor around the screen.
Default: true ยท Category: Support for multiple mice and keyboards
In practice
Read by Nucleus' own input hooks, injected into each instance (DllsInjector.cs, only with Game.SupportsMultipleKeyboardsAndMice), from before Proto Input. The Proto Input guide lists it among the options a Proto Input handler must set to false explicitly (some of them default to true), so Proto Input handlers set it false. Only the few handlers that use Nucleus' own keyboard and mouse input instead of Proto Input set it true.
Game.HookSetCursorPos = true;