Nucleus handler tools โบ Docs โบ Game.ProtoInput โบ GetKeyStateHook
Game.ProtoInput.GetKeyStateHook
Open in the workbench (search, and try it in a handler)
Game.ProtoInput.GetKeyStateHook: boolean
Hooks GetKeyState to return the "fake" keyboard state. You should almost always have this enabled even if it appears to have no effect: when using multiple keyboards at the game time, they may interfere without this hook.
Category: Proto Input
In practice
Answers the game's GetKeyState with the player's own keys, 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 game sees no key pressed at all. Key hooks are used as a set: most Proto Input handlers turn on all three, often from OnInputLocked, and nearly always with the raw input hook.
Game.ProtoInput.GetKeyStateHook = true;