Difference between revisions of "RegisterForKey - ScriptObject"
Jump to navigation
Jump to search
imported>Qazaaq (Added to the F4SE category) |
imported>Qazaaq (Replaced input script with DX Scan Code) |
||
Line 6: | Line 6: | ||
Minimum required F4SE Version: 0.3.0 | Minimum required F4SE Version: 0.3.0 | ||
Registers the given [[ | Registers the given [[DirectX Scan Codes|Scan Code]] for [[OnKeyDown - ScriptObject|OnKeyDown]] and [[OnKeyUp - ScriptObject|OnKeyUp]] events. | ||
== Syntax == | == Syntax == | ||
Line 12: | Line 12: | ||
== Parameters == | == Parameters == | ||
*KeyCode: The [[ | *KeyCode: The [[DirectX Scan Codes|DirectX Scan Code]] of the key to listen for. | ||
== Return Value == | == Return Value == | ||
None | |||
== Examples == | == Examples == | ||
Line 21: | Line 21: | ||
== Notes == | == Notes == | ||
== See Also == | == See Also == | ||
*[[ScriptObject Script]] | *[[ScriptObject Script]] | ||
*[[UnregisterForKey - ScriptObject]] | *[[UnregisterForKey - ScriptObject]] | ||
*[[OnKeyDown - ScriptObject]] | *[[OnKeyDown - ScriptObject]] | ||
*[[OnKeyUp - ScriptObject]] | *[[OnKeyUp - ScriptObject]] | ||
*[[DirectX Scan Codes]] |
Revision as of 14:45, 6 April 2017
F4SE Member of: ScriptObject Script
Minimum required F4SE Version: 0.3.0
Registers the given Scan Code for OnKeyDown and OnKeyUp events.
Syntax
Function RegisterForKey(Int Key) Native
Parameters
- KeyCode: The DirectX Scan Code of the key to listen for.
Return Value
None
Examples
RegisterForKey(160) ; L-Shift