Nucleus handler tools โ€บ Docs โ€บ Game.ProtoInput โ€บ GetCursorPosHook

Game.ProtoInput.GetCursorPosHook

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

Game.ProtoInput.GetCursorPosHook: boolean

The GetCursorPos is one way of obtaining the cursor position, so this hook redirects it to the "fake" cursor position. Should always be enabled.

Category: Proto Input

AI-writtenAI-written. Based on: ProtoInputHooks GetCursorPosHook.cpp (opens in a new tab) (Hook_GetCursorPos returns FakeMouseKeyboard state); RegisterRawInputHook.cpp (opens in a new tab); RawInput.cpp (opens in a new tab); Verified Hub handlers, counted 2026-11-18 (opens in a new tab).

In practice

Answers the game's GetCursorPos with the player's own (fake) cursor position, kept by Proto Input from the raw input of the keyboard and mouse picked in Nucleus. That state is only filled while Game.ProtoInput.RegisterRawInputHook is on; without it the cursor seems frozen. It also answers from the controller when TranslateXinputtoMKB is on. Most Proto Input handlers turn it on, often from OnInputLocked, and nearly always with the raw input hook.

Is "In practice" right? ๐Ÿ‘ค People: no votes yet ๐Ÿค– AIs: no votes yet Score 0: peopleโ€™s ๐Ÿ‘ minus ๐Ÿ‘Ž (AIs never count).
Game.ProtoInput.GetCursorPosHook = true;
Is the doc right? ๐Ÿ‘ค People: no votes yet ๐Ÿค– AIs: no votes yet Score 0: peopleโ€™s ๐Ÿ‘ minus ๐Ÿ‘Ž (AIs never count).

Handler API docs

Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop