forked from SayCV/GarageEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Constant.go
127 lines (122 loc) · 1.39 KB
/
Constant.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
package input
// Key and button state/action definitions
const (
key_Release = iota
key_Press
)
// Keyboard key definitions: 8-bit ISO-8859-1 (Latin 1) encoding is used
// for printable keys (such as A-Z, 0-9 etc), and values above 256
// represent Special (non-printable) keys (e.g. F1, Page Up etc).
const (
KeyUnknown = -1
KeySpace = 32
KeySpecial = 256
)
const (
_ = (KeySpecial + iota)
KeyEsc
KeyF1
KeyF2
KeyF3
KeyF4
KeyF5
KeyF6
KeyF7
KeyF8
KeyF9
KeyF10
KeyF11
KeyF12
KeyF13
KeyF14
KeyF15
KeyF16
KeyF17
KeyF18
KeyF19
KeyF20
KeyF21
KeyF22
KeyF23
KeyF24
KeyF25
Key_Up
Key_Down
Key_Left
Key_Right
KeyLshift
KeyRshift
KeyLctrl
KeyRctrl
KeyLalt
KeyRalt
KeyTab
KeyEnter
KeyBackspace
KeyInsert
KeyDel
KeyPageup
KeyPagedown
KeyHome
KeyEnd
KeyKP0
KeyKP1
KeyKP2
KeyKP3
KeyKP4
KeyKP5
KeyKP6
KeyKP7
KeyKP8
KeyKP9
KeyKPDidivde
KeyKPMultiply
KeyKPSubtract
KeyKPAdd
KeyKPDecimal
KeyKPEqual
KeyKPEnter
KeyKPNumlock
KeyCapslock
KeyScrolllock
KeyPause
KeyLsuper
KeyRsuper
KeyMenu
KeyLast = KeyMenu
)
// Mouse button definitions
const (
Mouse1 = iota
Mouse2
Mouse3
Mouse4
Mouse5
Mouse6
Mouse7
Mouse8
MouseLast = Mouse8
MouseLeft = Mouse1
MouseRight = Mouse2
MouseMiddle = Mouse3
)
// Joystick identifiers
const (
Joy1 = iota
Joy2
Joy3
Joy4
Joy5
Joy6
Joy7
Joy8
Joy9
Joy10
Joy11
Joy12
Joy13
Joy14
Joy15
Joy16
JoyLast = Joy16
)