Nucleus handler tools โบ Docs โบ Game.ProtoInput โบ GetKeyboardStateHook
Game.ProtoInput.GetKeyboardStateHook
Open in the workbench (search, and try it in a handler)
Game.ProtoInput.GetKeyboardStateHook: boolean
Basically the same as Get Key State, except it returns the state of the entire keyboard. Should almost always be enabled.
Category: Proto Input
In practice
Answers the game's GetKeyboardState 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.
Is "In practice" right?
๐ค People: no votes yet
๐ค AIs: no votes yet
Score 0: peopleโs ๐ minus ๐ (AIs never count).
Tell us what's wrongGive feedback
Game.ProtoInput.GetKeyboardStateHook = true;
Is the doc right?
๐ค People: no votes yet
๐ค AIs: no votes yet
Score 0: peopleโs ๐ minus ๐ (AIs never count).
Tell us what's wrongGive feedback