Difference between revisions of "RegisterForKey - ScriptObject"

From the Fallout4 CreationKit Wiki
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 [[Input_Script#DXScanCodes|DXScanCode]] for [[OnKeyDown - ScriptObject|OnKeyDown]] and [[OnKeyUp - ScriptObject|OnKeyUp]] events. (This function requires F4SE)
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 [[Input_Script#DXScanCodes|DXScanCode]] of the key to listen for.
*KeyCode: The [[DirectX Scan Codes|DirectX Scan Code]] of the key to listen for.


== Return Value ==
== Return Value ==
NONE
None


== Examples ==
== Examples ==
Line 21: Line 21:


== Notes ==
== Notes ==


== See Also ==
== See Also ==
*[[ScriptObject Script]]
*[[ScriptObject Script]]
*[[Input 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

Return Value

None

Examples

RegisterForKey(160) ; L-Shift

Notes

See Also