Difference between revisions of "Input Script"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Kyllagdrgn
(Created page with "== Definition == <source lang="papyrus">ScriptName Input</source> == Properties == None == F4SE Global Functions == None == Member Functions == None == Events == None...")
 
imported>Qazaaq
(added required f4se version)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Extends:''' [[ScriptObject Script]]
{{Template:Papyrus:RequiredF4SE|version=0.3.1}}
Script for getting input information.
== Definition ==
== Definition ==
<source lang="papyrus">ScriptName Input</source>
<source lang="papyrus">
Scriptname Input Native Hidden
</source>


== Properties ==
== Properties ==
None
None


 
== Global Functions ==
== F4SE Global Functions ==
 
None
None


Line 13: Line 18:
None
None


== F4SE Global Functions ==
*string Function [[GetMappedControl - Input|GetMappedControl]](int aiKeyCode)
**Returns the name of the control bound to the given key code.
*int Function [[GetMappedKey - Input|GetMappedKey]](string asControlName, int aiDeviceType = 0xFF)
**Returns the key code of the named control.


== Events ==
== Events ==
None
None
== DXScanCodes ==
<source lang="html4strict">Button  Dec
Escape  27 
Q  81
W  87
E  69
R  82
T  84
Y  89
U  85
I  73
O  79
P  80
TAB  9
ENTER  13
A  65
S  83
D  68
F  70
G  71
H  72
J  74
K  75
L  76
;  186
Z  90
V  86
B  66 
N  78
M  77
,  188
.  190
/  191
L-SHIFT  160
R-SHIFT  161
SPACE  32
L-ALT  164
R-ALT  165
L-CTRL  162
R-CTRL  163
1  49
2  50
3  51
4  52
5  53
6  54
7  55
8  56
9  57
0  48
-  189
=  187
BACKSPACE  8
UP  38
LEFT  37
DOWN  40
RIGHT  39
DELETE  46
END  35
PGDOWN  34
PGUP  33
HOME  36
Num0  96
Num1  97
Num2  98
Num3  99
Num4  100
Num5  101
Num6  102
Num7  103
Num8  104
Num9  105
Num.  110
NumENTER  13
Num+  107
Num-  109
Num*  106
Num/  111
F1  112
F2  113
F3  114
F4  115
F5  116
F6  117
F7  118
F8  119
F9  120
F10  121
F11  122
</source>
== Notes ==
*It seems that some keys don't fire if they are used by game, such as L-Alt and L-Ctrl. (They must be unused by control scheme).


== See Also ==
== See Also ==
[[RegisterForKey - ScriptObject]]
*[[DirectX_Scan_Codes|DirectX Scan Codes]]
[[OnKeyDown - ScriptObject]]
[[OnKeyUp - ScriptObject]]




Line 121: Line 35:
[[Category:Papyrus]]
[[Category:Papyrus]]
[[Category:Script Objects]]
[[Category:Script Objects]]
[[Category:F4SE]]

Latest revision as of 15:39, 21 January 2018

Extends: ScriptObject Script
Requires F4SE version 0.3.1 or higher.

Script for getting input information.

Definition[edit | edit source]

Scriptname Input Native Hidden

Properties[edit | edit source]

None

Global Functions[edit | edit source]

None

Member Functions[edit | edit source]

None

F4SE Global Functions[edit | edit source]

  • string Function GetMappedControl(int aiKeyCode)
    • Returns the name of the control bound to the given key code.
  • int Function GetMappedKey(string asControlName, int aiDeviceType = 0xFF)
    • Returns the key code of the named control.

Events[edit | edit source]

None

See Also[edit | edit source]