KeyCode

The KeyCode Enum contains a list of Byte keycodes that represent the button used in a user input.

Note, KeyCode keyboard values refer to the physical position of buttons on a standard QWERTY keyboard. This means that, provided the user's system is configured correctly, the location of keys (such as WASD) will remain the same on other keyboard types, such as Dvorak keyboards (where it would map to ,AOE).

This enum also includes buttons and axes present on gamepads, and 96 `World`` values for non-standard buttons.

The keypad is a cluster of keys that is present on many desktop keyboards, but is rare for laptops to have.

See also:

アイテム

名前概要
Unknown0
Backspace8
Tab9
Clear12
Return13
Pause19
Escape27
Space32
QuotedDouble34
Hash35
Dollar36
Percent37
Ampersand38
Quote39
LeftParenthesis40
RightParenthesis41
Asterisk42
Plus43
Comma44
Minus45
Period46
Slash47
Zero48
One49
Two50
Three51
Four52
Five53
Six54
Seven55
Eight56
Nine57
Colon58
Semicolon59
LessThan60
Equals61
GreaterThan62
Question63
At64
LeftBracket91
BackSlash92
RightBracket93
Caret94
Underscore95
Backquote96
A97
B98
C99
D100
E101
F102
G103
H104
I105
J106
K107
L108
M109
N110
O111
P112
Q113
R114
S115
T116
U117
V118
W119
X120
Y121
Z122
LeftCurly123
Pipe124
RightCurly125
Tilde126
Delete127
World0160
World1161
World2162
World3163
World4164
World5165
World6166
World7167
World8168
World9169
World10170
World11171
World12172
World13173
World14174
World15175
World16176
World17177
World18178
World19179
World20180
World21181
World22182
World23183
World24184
World25185
World26186
World27187
World28188
World29189
World30190
World31191
World32192
World33193
World34194
World35195
World36196
World37197
World38198
World39199
World40200
World41201
World42202
World43203
World44204
World45205
World46206
World47207
World48208
World49209
World50210
World51211
World52212
World53213
World54214
World55215
World56216
World57217
World58218
World59219
World60220
World61221
World62222
World63223
World64224
World65225
World66226
World67227
World68228
World69229
World70230
World71231
World72232
World73233
World74234
World75235
World76236
World77237
World78238
World79239
World80240
World81241
World82242
World83243
World84244
World85245
World86246
World87247
World88248
World89249
World90250
World91251
World92252
World93253
World94254
World95255
KeypadZero256
KeypadOne257
KeypadTwo258
KeypadThree259
KeypadFour260
KeypadFive261
KeypadSix262
KeypadSeven263
KeypadEight264
KeypadNine265
KeypadPeriod266
KeypadDivide267
KeypadMultiply268
KeypadMinus269
KeypadPlus270
KeypadEnter271
KeypadEquals272
Up273
Down274
Right275
Left276
Insert277
Home278
End279
PageUp280
PageDown281
F1282
F2283
F3284
F4285
F5286
F6287
F7288
F8289
F9290
F10291
F11292
F12293
F13294
F14295
F15296
NumLock300
CapsLock301
ScrollLock302
RightShift303
LeftShift304
RightControl305
LeftControl306
RightAlt307
LeftAlt308
RightMeta309
LeftMeta310
LeftSuper311
RightSuper312
Mode313
Compose314
Help315
Print316
SysReq317
Break318
Menu319
Power320
Euro321
Undo322
ButtonX1000
ButtonY1001
ButtonA1002
ButtonB1003
ButtonR11004
ButtonL11005
ButtonR21006
ButtonL21007
ButtonR31008
ButtonL31009
ButtonStart1010
ButtonSelect1011
DPadLeft1012
DPadRight1013
DPadUp1014
DPadDown1015
Thumbstick11016
Thumbstick21017
MouseLeftButton1018
MouseRightButton1019
MouseMiddleButton1020
MouseBackButton1021
MouseNoButton1022
MouseX1023
MouseY1024