-
Notifications
You must be signed in to change notification settings - Fork 1
/
input.go
134 lines (133 loc) · 3.27 KB
/
input.go
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
package gofb
// Keyboard and mouse inputs
const (
InputUnknown = -1
KeySpace = 32
KeyApostrophe = 39 /* ' */
KeyComma = 44 /* , */
KeyMinus = 45 /* - */
KeyPeriod = 46 /* . */
KeySlash = 47 /* / */
Key0 = 48
Key1 = 49
Key2 = 50
Key3 = 51
Key4 = 52
Key5 = 53
Key6 = 54
Key7 = 55
Key8 = 56
Key9 = 57
KeySemicolon = 59 /* ; */
KeyEqual = 61 /* = */
KeyA = 65
KeyB = 66
KeyC = 67
KeyD = 68
KeyE = 69
KeyF = 70
KeyG = 71
KeyH = 72
KeyI = 73
KeyJ = 74
KeyK = 75
KeyL = 76
KeyM = 77
KeyN = 78
KeyO = 79
KeyP = 80
KeyQ = 81
KeyR = 82
KeyS = 83
KeyT = 84
KeyU = 85
KeyV = 86
KeyW = 87
KeyX = 88
KeyY = 89
KeyZ = 90
KeyLeftBracket = 91 /* [ */
KeyBackslash = 92 /* \ */
KeyRightBracket = 93 /* ] */
KeyGraveAccent = 96 /* ` */
KeyWorld1 = 161 /* non-US #1 */
KeyWorld2 = 162 /* non-US #2 */
KeyEscape = 256
KeyEnter = 257
KeyTab = 258
KeyBackspace = 259
KeyInsert = 260
KeyDelete = 261
KeyRight = 262
KeyLeft = 263
KeyDown = 264
KeyUp = 265
KeyPageUp = 266
KeyPageDown = 267
KeyHome = 268
KeyEnd = 269
KeyCapsLock = 280
KeyScrollLock = 281
KeyNumLock = 282
KeyPrintScreen = 283
KeyPause = 284
KeyF1 = 290
KeyF2 = 291
KeyF3 = 292
KeyF4 = 293
KeyF5 = 294
KeyF6 = 295
KeyF7 = 296
KeyF8 = 297
KeyF9 = 298
KeyF10 = 299
KeyF11 = 300
KeyF12 = 301
KeyF13 = 302
KeyF14 = 303
KeyF15 = 304
KeyF16 = 305
KeyF17 = 306
KeyF18 = 307
KeyF19 = 308
KeyF20 = 309
KeyF21 = 310
KeyF22 = 311
KeyF23 = 312
KeyF24 = 313
KeyF25 = 314
KeyKp0 = 320
KeyKp1 = 321
KeyKp2 = 322
KeyKp3 = 323
KeyKp4 = 324
KeyKp5 = 325
KeyKp6 = 326
KeyKp7 = 327
KeyKp8 = 328
KeyKp9 = 329
KeyKpDecimal = 330
KeyKpDivide = 331
KeyKpMultiply = 332
KeyKpSubtract = 333
KeyKpAdd = 334
KeyKpEnter = 335
KeyKpEqual = 336
KeyLeftShift = 340
KeyLeftControl = 341
KeyLeftAlt = 342
KeyLeftSuper = 343
KeyRightShift = 344
KeyRightControl = 345
KeyRightAlt = 346
KeyRightSuper = 347
KeyMenu = 348
KeyLast = 348
KeyShift = 401
KeyControl = 402
KeyAlt = 403
KeySuper = 404
MouseButtonLeft = 500
MouseButtonMiddle = 501
MouseButtonRight = 502
)