-
Notifications
You must be signed in to change notification settings - Fork 3
/
consts.go
154 lines (150 loc) · 4.4 KB
/
consts.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
package in3d
import "github.com/go-gl/glfw/v3.3/glfw"
const (
// MaxLights :
MaxLights = 42
// Press :
Press = glfw.Press
// Release :
Release = glfw.Release
)
const (
// iota is a predeclared identifier that represents successive integer constants.
// It is commonly used in Go for creating a set of related constants that have a sequence of values.
_ = iota
// FlyMode : Allow "Flying" Through Scene
FlyMode
// PointerLock :
PointerLock
// MouseControls :
MouseControls
// KeyControls :
KeyControls
// NoTexture :
NoTexture = 999
)
// Mapping of GLFW Keys
const (
KeyUnknown = glfw.KeyUnknown
KeySpace = glfw.KeySpace
KeyApostrophe = glfw.KeyApostrophe
KeyComma = glfw.KeyComma
KeyMinus = glfw.KeyMinus
KeyPeriod = glfw.KeyPeriod
KeySlash = glfw.KeySlash
Key0 = glfw.Key0
Key1 = glfw.Key1
Key2 = glfw.Key2
Key3 = glfw.Key3
Key4 = glfw.Key4
Key5 = glfw.Key5
Key6 = glfw.Key6
Key7 = glfw.Key7
Key8 = glfw.Key8
Key9 = glfw.Key9
KeySemicolon = glfw.KeySemicolon
KeyEqual = glfw.KeyEqual
KeyA = glfw.KeyA
KeyB = glfw.KeyB
KeyC = glfw.KeyC
KeyD = glfw.KeyD
KeyE = glfw.KeyE
KeyF = glfw.KeyF
KeyG = glfw.KeyG
KeyH = glfw.KeyH
KeyI = glfw.KeyI
KeyJ = glfw.KeyJ
KeyK = glfw.KeyK
KeyL = glfw.KeyL
KeyM = glfw.KeyM
KeyN = glfw.KeyN
KeyO = glfw.KeyO
KeyP = glfw.KeyP
KeyQ = glfw.KeyQ
KeyR = glfw.KeyR
KeyS = glfw.KeyS
KeyT = glfw.KeyT
KeyU = glfw.KeyU
KeyV = glfw.KeyV
KeyW = glfw.KeyW
KeyX = glfw.KeyX
KeyY = glfw.KeyY
KeyZ = glfw.KeyZ
KeyLeftBracket = glfw.KeyLeftBracket
KeyBackslash = glfw.KeyBackslash
KeyRightBracket = glfw.KeyRightBracket
KeyGraveAccent = glfw.KeyGraveAccent
KeyWorld1 = glfw.KeyWorld1
KeyWorld2 = glfw.KeyWorld2
KeyEscape = glfw.KeyEscape
KeyEnter = glfw.KeyEnter
KeyTab = glfw.KeyTab
KeyBackspace = glfw.KeyBackspace
KeyInsert = glfw.KeyInsert
KeyDelete = glfw.KeyDelete
KeyRight = glfw.KeyRight
KeyLeft = glfw.KeyLeft
KeyDown = glfw.KeyDown
KeyUp = glfw.KeyUp
KeyPageUp = glfw.KeyPageUp
KeyPageDown = glfw.KeyPageDown
KeyHome = glfw.KeyHome
KeyEnd = glfw.KeyEnd
KeyCapsLock = glfw.KeyCapsLock
KeyScrollLock = glfw.KeyScrollLock
KeyNumLock = glfw.KeyNumLock
KeyPrintScreen = glfw.KeyPrintScreen
KeyPause = glfw.KeyPause
KeyF1 = glfw.KeyF1
KeyF2 = glfw.KeyF2
KeyF3 = glfw.KeyF3
KeyF4 = glfw.KeyF4
KeyF5 = glfw.KeyF5
KeyF6 = glfw.KeyF6
KeyF7 = glfw.KeyF7
KeyF8 = glfw.KeyF8
KeyF9 = glfw.KeyF9
KeyF10 = glfw.KeyF10
KeyF11 = glfw.KeyF11
KeyF12 = glfw.KeyF12
KeyF13 = glfw.KeyF13
KeyF14 = glfw.KeyF14
KeyF15 = glfw.KeyF15
KeyF16 = glfw.KeyF16
KeyF17 = glfw.KeyF17
KeyF18 = glfw.KeyF18
KeyF19 = glfw.KeyF19
KeyF20 = glfw.KeyF20
KeyF21 = glfw.KeyF21
KeyF22 = glfw.KeyF22
KeyF23 = glfw.KeyF23
KeyF24 = glfw.KeyF24
KeyF25 = glfw.KeyF25
KeyKP0 = glfw.KeyKP0
KeyKP1 = glfw.KeyKP1
KeyKP2 = glfw.KeyKP2
KeyKP3 = glfw.KeyKP3
KeyKP4 = glfw.KeyKP4
KeyKP5 = glfw.KeyKP5
KeyKP6 = glfw.KeyKP6
KeyKP7 = glfw.KeyKP7
KeyKP8 = glfw.KeyKP8
KeyKP9 = glfw.KeyKP9
KeyKPDecimal = glfw.KeyKPDecimal
KeyKPDivide = glfw.KeyKPDivide
KeyKPMultiply = glfw.KeyKPMultiply
KeyKPSubtract = glfw.KeyKPSubtract
KeyKPAdd = glfw.KeyKPAdd
KeyKPEnter = glfw.KeyKPEnter
KeyKPEqual = glfw.KeyKPEqual
KeyLeftShift = glfw.KeyLeftShift
KeyLeftControl = glfw.KeyLeftControl
KeyLeftAlt = glfw.KeyLeftAlt
KeyLeftSuper = glfw.KeyLeftSuper
KeyRightShift = glfw.KeyRightShift
KeyRightControl = glfw.KeyRightControl
KeyRightAlt = glfw.KeyRightAlt
KeyRightSuper = glfw.KeyRightSuper
KeyMenu = glfw.KeyMenu
KeyLast = glfw.KeyLast
)