Difference between revisions of "GetMappedControl - Input"
no edit summary
imported>Qazaaq (added f4se member) |
imported>Jlundin |
||
Line 1: | Line 1: | ||
'''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. | |||
== Syntax == | == Syntax == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
string Function GetMappedControl(int | string Function GetMappedControl(int keycode) global native | ||
</source> | </source> | ||
== Parameters == | == Parameters == | ||
* | *int keyCode: the integer corresponding to the key bound to the control (if any). | ||
See [[DirectX Scan Codes]] | |||
== Return Value == | == Return Value == | ||
* | * Returns a string for the bound control. | ||
== Examples == | == Examples == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
; | 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]] | |||