File tree Expand file tree Collapse file tree 3 files changed +95
-2
lines changed Expand file tree Collapse file tree 3 files changed +95
-2
lines changed Original file line number Diff line number Diff line change @@ -142,4 +142,35 @@ const (
142
142
KeyX Key = 7
143
143
KeyY Key = 16
144
144
KeyZ Key = 6
145
+
146
+ KeyReturn Key = 0x24
147
+ KeyEscape Key = 0x35
148
+ KeyDelete Key = 0x33
149
+ KeyTab Key = 0x30
150
+
151
+ KeyLeft Key = 0x7B
152
+ KeyRight Key = 0x7C
153
+ KeyUp Key = 0x7E
154
+ KeyDown Key = 0x7D
155
+
156
+ KeyF1 Key = 0x7A
157
+ KeyF2 Key = 0x78
158
+ KeyF3 Key = 0x63
159
+ KeyF4 Key = 0x76
160
+ KeyF5 Key = 0x60
161
+ KeyF6 Key = 0x61
162
+ KeyF7 Key = 0x62
163
+ KeyF8 Key = 0x64
164
+ KeyF9 Key = 0x65
165
+ KeyF10 Key = 0x6D
166
+ KeyF11 Key = 0x67
167
+ KeyF12 Key = 0x6F
168
+ KeyF13 Key = 0x69
169
+ KeyF14 Key = 0x6B
170
+ KeyF15 Key = 0x71
171
+ KeyF16 Key = 0x6A
172
+ KeyF17 Key = 0x40
173
+ KeyF18 Key = 0x4F
174
+ KeyF19 Key = 0x50
175
+ KeyF20 Key = 0x5A
145
176
)
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ const (
135
135
136
136
// Key represents a key.
137
137
// See /usr/include/X11/keysymdef.h
138
- type Key uint8
138
+ type Key uint16
139
139
140
140
// All kinds of keys
141
141
const (
@@ -176,4 +176,35 @@ const (
176
176
KeyX Key = 0x0078
177
177
KeyY Key = 0x0079
178
178
KeyZ Key = 0x007a
179
+
180
+ KeyReturn Key = 0xff0d
181
+ KeyEscape Key = 0xff1b
182
+ KeyDelete Key = 0xffff
183
+ KeyTab Key = 0xff1b
184
+
185
+ KeyLeft Key = 0xff51
186
+ KeyRight Key = 0xff53
187
+ KeyUp Key = 0xff52
188
+ KeyDown Key = 0xff54
189
+
190
+ KeyF1 Key = 0xffbe
191
+ KeyF2 Key = 0xffbf
192
+ KeyF3 Key = 0xffc0
193
+ KeyF4 Key = 0xffc1
194
+ KeyF5 Key = 0xffc2
195
+ KeyF6 Key = 0xffc3
196
+ KeyF7 Key = 0xffc4
197
+ KeyF8 Key = 0xffc5
198
+ KeyF9 Key = 0xffc6
199
+ KeyF10 Key = 0xffc7
200
+ KeyF11 Key = 0xffc8
201
+ KeyF12 Key = 0xffc9
202
+ KeyF13 Key = 0xffca
203
+ KeyF14 Key = 0xffcb
204
+ KeyF15 Key = 0xffcc
205
+ KeyF16 Key = 0xffcd
206
+ KeyF17 Key = 0xffce
207
+ KeyF18 Key = 0xffcf
208
+ KeyF19 Key = 0xffd0
209
+ KeyF20 Key = 0xffd1
179
210
)
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ const (
151
151
152
152
// Key represents a key.
153
153
// https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
154
- type Key uint8
154
+ type Key uint16
155
155
156
156
// All kinds of Keys
157
157
const (
@@ -192,4 +192,35 @@ const (
192
192
KeyX Key = 0x58
193
193
KeyY Key = 0x59
194
194
KeyZ Key = 0x5A
195
+
196
+ KeyReturn Key = 0x0D
197
+ KeyEscape Key = 0x1B
198
+ KeyDelete Key = 0x2E
199
+ KeyTab Key = 0x09
200
+
201
+ KeyLeft Key = 0x25
202
+ KeyRight Key = 0x27
203
+ KeyUp Key = 0x26
204
+ KeyDown Key = 0x28
205
+
206
+ KeyF1 Key = 0x70
207
+ KeyF2 Key = 0x71
208
+ KeyF3 Key = 0x72
209
+ KeyF4 Key = 0x73
210
+ KeyF5 Key = 0x74
211
+ KeyF6 Key = 0x75
212
+ KeyF7 Key = 0x76
213
+ KeyF8 Key = 0x77
214
+ KeyF9 Key = 0x78
215
+ KeyF10 Key = 0x79
216
+ KeyF11 Key = 0x7A
217
+ KeyF12 Key = 0x7B
218
+ KeyF13 Key = 0x7C
219
+ KeyF14 Key = 0x7D
220
+ KeyF15 Key = 0x7E
221
+ KeyF16 Key = 0x7F
222
+ KeyF17 Key = 0x80
223
+ KeyF18 Key = 0x81
224
+ KeyF19 Key = 0x82
225
+ KeyF20 Key = 0x83
195
226
)
You can’t perform that action at this time.
0 commit comments