Difference between revisions of "RegisterForKey - ScriptObject"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Qazaaq
(Replaced input script with DX Scan Code)
imported>Qazaaq
m
Line 12: Line 12:


== Parameters ==
== Parameters ==
*KeyCode: The [[DirectX Scan Codes|DirectX Scan Code]] of the key to listen for.
*KeyCode: The [[DirectX Scan Codes|Scan Code]] of the key to listen for.


== Return Value ==
== Return Value ==

Revision as of 14:49, 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 Scan Code of the key to listen for.

Return Value

None

Examples

RegisterForKey(160) ; L-Shift

Notes

See Also