GetMappedControl - Input

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

F4SE Member of: Input Script
Requires F4SE version 0.3.1 or higher. Returns name of control bound to given keycode, or "" if unbound.


Syntax[edit | edit source]

string Function GetMappedControl(int keycode) global native

Parameters[edit | edit source]

  • int keyCode: the integer corresponding to the key bound to the control (if any).

See DirectX Scan Codes

Return Value[edit | edit source]

  • Returns a string for the bound control.

Examples[edit | edit source]

Input.GetMappedControl(66) ; let's see what control is bound to "B"!

See Also[edit | edit source]