-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathA3_ALL_KEYCODES_DIK_INTEGER.sqf
153 lines (140 loc) · 3.38 KB
/
A3_ALL_KEYCODES_DIK_INTEGER.sqf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/*
# A3_Keycodes:
Arma 3 DIK & INTEGER KeyCodes
in A3_ALL_KEYCODES_DIK_INTEGER.sqf
# GitHub Share Link:
https://github.com/M9-SD/A3_Keycodes/blob/main/A3_ALL_KEYCODES_DIK_INTEGER.sqf
# GitHub Download Link:
https://github.com/M9-SD/A3_Keycodes/releases/download/v.SQF.Archive/A3_ALL_KEYCODES_DIK_INTEGER.sqf
# Description:
A complete list of all the integer keycodes used for creating keybinds
(user interface event handlers `keyDown` and `mouseButtonDown`) in the
game Arma 3 by Bohemia Interactive. You can use either of the following
script commands to register the new keybind (depending on use-case):
`displayAddEventHandler` or `ctrlAddEventHandler`.
# Source(s):
https://community.bistudio.com/wiki/DIK_KeyCodes
https://community.bistudio.com/wiki/User_Interface_Event_Handlers#onKeyDown
https://community.bistudio.com/wiki/User_Interface_Event_Handlers#onMouseButtonDown
https://community.bistudio.com/wiki/displayAddEventHandler
https://community.bistudio.com/wiki/ctrlAddEventHandler
*/
// EventHandler = "KeyDown";
// Parameter "_key" (integer):
KeyboardMapping = [
[ 0 , "" ],
[ 1 , "Escape" ],
[ 2 , "1" ],
[ 3 , "2" ],
[ 4 , "3" ],
[ 5 , "4" ],
[ 6 , "5" ],
[ 7 , "6" ],
[ 8 , "7" ],
[ 9 , "8" ],
[ 10 , "9" ],
[ 11 , "0" ],
[ 12 , "-" ],
[ 13 , "=" ],
[ 14 , "Backspace" ],
[ 15 , "Tab" ],
[ 16 , "Q" ],
[ 17 , "W" ],
[ 18 , "E" ],
[ 19 , "R" ],
[ 20 , "T" ],
[ 21 , "Y" ],
[ 22 , "U" ],
[ 23 , "I" ],
[ 24 , "O" ],
[ 25 , "P" ],
[ 26 , "[" ],
[ 27 , "]" ],
[ 28 , "Enter" ],
[ 29 , "Left Ctrl" ],
[ 30 , "A" ],
[ 31 , "S" ],
[ 32 , "D" ],
[ 33 , "F" ],
[ 34 , "G" ],
[ 35 , "H" ],
[ 36 , "J" ],
[ 37 , "K" ],
[ 38 , "L" ],
[ 39 , ";" ],
[ 40 , "'" ],
[ 41 , "`" ],
[ 42 , "Left Shift" ],
[ 43 , "\" ],
[ 44 , "Z" ],
[ 45 , "X" ],
[ 46 , "C" ],
[ 47 , "V" ],
[ 48 , "B" ],
[ 49 , "N" ],
[ 50 , "M" ],
[ 51 , "," ],
[ 52 , "." ],
[ 53 , "/" ],
[ 54 , "Right Shift" ],
[ 55 , "* [NUM]" ],
[ 56 , "Left Alt" ],
[ 57 , "Space" ],
[ 58 , "Caps Lock" ],
[ 59 , "F1" ],
[ 60 , "F2" ],
[ 61 , "F3" ],
[ 62 , "F4" ],
[ 63 , "F5" ],
[ 64 , "F6" ],
[ 65 , "F7" ],
[ 66 , "F8" ],
[ 67 , "F9" ],
[ 68 , "F10" ],
[ 69 , "Num Lock" ],
[ 70 , "Scroll Lock" ],
[ 71 , "7 [NUM]" ],
[ 72 , "8 [NUM]" ],
[ 73 , "9 [NUM]" ],
[ 74 , "- [NUM]" ],
[ 75 , "4 [NUM]" ],
[ 76 , "5 [NUM]" ],
[ 77 , "6 [NUM]" ],
[ 78 , "+ [NUM]" ],
[ 79 , "1 [NUM]" ],
[ 80 , "2 [NUM]" ],
[ 81 , "3 [NUM]" ],
[ 82 , "0 [NUM]" ],
[ 83 , ". [NUM]" ],
[ 87 , "F11" ],
[ 88 , "F12" ],
[ 128 : "UNXPECTED_KEY_ID" ],
[ 156 , "Enter [NUM]" ],
[ 157 , "Right Ctrl" ],
[ 181 , "/ [NUM]" ],
[ 183 , "System Request" ],
[ 184 , "Right Alt" ],
[ 197 , "Pause" ],
[ 199 , "Home" ],
[ 200 , "UP" ],
[ 201 , "Page Up" ],
[ 203 , "LEFT" ],
[ 205 , "RIGHT" ],
[ 207 , "End" ],
[ 208 , "DOWN" ],
[ 209 , "Page Down" ],
[ 210 , "Insert" ],
[ 211 , "Delete" ],
[ 219 , "Left Windows" ],
[ 220 , "Right Windows" ],
[ 221 , "App Menu" ]
];
// EventHandler = "MouseButtonDown";
// Parameter "_button" (integer):
MouseButtonMapping = [
[ 0 , "Left Mouse Click" ],
[ 1 , "Right Mouse Click" ],
[ 2 , "Middle Mouse Wheel Click" ],
[ 3 , "Side Mouse Button 4" ],
[ 4 , "Side Mouse Button 5" ]
];