Nucleus handler tools › Docs › Game.ProtoInput › SetCursorPosHook

Game.ProtoInput.SetCursorPosHook

Open in the workbench (search, and try it in a handler)

Game.ProtoInput.SetCursorPosHook: boolean

SetCursorPos sets the cursor position. This hook causes it to set the "fake" cursor instead. This is important in some games that will set the mouse cursor to the centre of the screen each frame, then calculate the difference in movement each frame. This hook also prevents moving the "real" cursor, which can be problematic. Should always be enabled.

Category: Proto Input

Game.ProtoInput.SetCursorPosHook = true;

Handler API docs

Is this right? Tell us what's wrong
Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop