RegisterForKey - ScriptObject

F4SE Member of: ScriptObject Script
Requires F4SE version 0.3.0 or higher.

Registers the given Scan Code for OnKeyDown and OnKeyUp events.

SyntaxEdit

Function RegisterForKey(int key) Native

ParametersEdit

  • keyCode: The Scan Code of the key to listen for.

Return ValueEdit

None

ExamplesEdit

RegisterForKey(160) ; left shift

NotesEdit

None

See AlsoEdit