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

Game.ProtoInput.GetRawInputDataHook

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

Game.ProtoInput.GetRawInputDataHook: boolean

When forwarding the input back to the game, you need to create a handle to the input data. However these handles can only be created by Windows. To get around this, Proto Input will send a dummy WM_INPUT message to the game (from the Register Raw Input hook). The game then calls GetRawInputData using the dummy handle. This hook intercepts the call and passes in the saved data. This hook is required to make forwarding raw input work, so it should always be enabled.

Category: Proto Input

AI-writtenAI-written. Based on: ProtoInputHooks GetRawInputDataHook.cpp (opens in a new tab) (0xAB000000 signature, RawInput::inputBuffer); RawInput.cpp (opens in a new tab) (forwardingWindows, PostMessageW WM_INPUT); RegisterRawInputHook.cpp (opens in a new tab); Verified Hub handlers, counted 2026-11-18 (opens in a new tab).

In practice

Only matters for games that read raw input themselves. With Game.ProtoInput.RegisterRawInputHook on, Proto Input posts each player's raw input as WM_INPUT to the windows the game registered, tagged with its own signature; this hook lets the game's GetRawInputData read that data. Without the raw input hook it has nothing to pass on. Most Proto Input handlers turn it on, nearly always together 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.GetRawInputDataHook = 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