Difference between revisions of "GetMappedControl - Input"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Qazaaq
(added f4se member)
 
imported>Jlundin
 
Line 1: Line 1:
{{Template:Incomplete Article}}
'''F4SE Member of:''' [[Input Script]]
'''F4SE Member of:''' [[Input Script]]
{{Template:Papyrus:RequiredF4SE|version=0.3.1}}
{{Template:Papyrus:RequiredF4SE|version=0.3.1}}
Returns name of control bound to given keycode, or "" if unbound.


Placeholder Description.


== Syntax ==
== Syntax ==
<source lang="papyrus">
<source lang="papyrus">
string Function GetMappedControl(int aiKeycode) Native Global
string Function GetMappedControl(int keycode) global native
</source>
</source>


== Parameters ==
== Parameters ==
*aiKeycode: Placeholder Description.
*int keyCode: the integer corresponding to the key bound to the control (if any).
 
See [[DirectX Scan Codes]]


== Return Value ==
== Return Value ==
*Placeholder Description.
* Returns a string for the bound control.


== Examples ==
== Examples ==
<source lang="papyrus">
<source lang="papyrus">
; Placeholder Code.
Input.GetMappedControl(66) ; let's see what control is bound to "B"!
</source>
</source>


== See Also ==
== See Also ==
*[[Input Script]]
*[[Input Script]]
*[[GetMappedKey - Input]]
*[[DirectX Scan Codes]]





Latest revision as of 03:00, 27 February 2021

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]