Difference between revisions of "UnregisterForKey - ScriptObject"

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


== Syntax ==
== Syntax ==
<source lang="papyrus">Function UnregisterForKey(Int KeyCode) Native</source>
<source lang="papyrus">Function UnregisterForKey(int keyCode) Native</source>


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


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

Revision as of 18:23, 6 April 2017

F4SE Member of: ScriptObject Script

Minimum required F4SE Version: 0.3.0

Unregisters the given Scan Code for OnKeyDown and OnKeyUp events after prior registration via RegisterForKey.

Syntax

Function UnregisterForKey(int keyCode) Native

Parameters

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

Return Value

None

Examples

UnregisterForKey(160) ; L-Shift

Notes

NONE

See Also