Enum KeyCode
Represents a physical key (or scancode), using QWERTY US keymap as basis.
I.e. the key "A" on an AZERTY keyboard is represented by Code
.
This enum has 256 values and is a perfect candidate for index based
look-up table.
Values of enumerants are from the USB HID scancodes table.
enum KeyCode
: ubyte { ... }
Enum members
Name | Description |
---|---|
a
|
|
again
|
|
altErase
|
|
b
|
|
backslash
|
|
backspace
|
|
c
|
|
cancel
|
|
capsLock
|
|
clear
|
|
clearAgain
|
|
comma
|
|
copy
|
|
crSelProps
|
|
currencySubUnit
|
|
currencyUnit
|
|
cut
|
|
d
|
|
d0
|
|
d1
|
|
d2
|
|
d3
|
|
d4
|
|
d5
|
|
d6
|
|
d7
|
|
d8
|
|
d9
|
|
decimalSep
|
|
delete_
|
|
down
|
|
e
|
|
end
|
|
enter
|
|
equals
|
|
errorRollOver
|
|
errorUndefined
|
|
escape
|
|
execute
|
|
exSel
|
|
f
|
|
f1
|
|
f10
|
|
f11
|
|
f12
|
|
f13
|
|
f14
|
|
f15
|
|
f16
|
|
f17
|
|
f18
|
|
f19
|
|
f2
|
|
f20
|
|
f21
|
|
f22
|
|
f23
|
|
f24
|
|
f3
|
|
f4
|
|
f5
|
|
f6
|
|
f7
|
|
f8
|
|
f9
|
|
find
|
|
g
|
|
grave
|
|
h
|
|
help
|
|
home
|
|
i
|
|
insert
|
|
international1
|
|
international2
|
|
international3
|
|
international4
|
|
international5
|
|
international6
|
|
international7
|
|
international8
|
|
international9
|
|
j
|
|
k
|
|
kp_0
|
|
kp_00
|
|
kp_000
|
|
kp_1
|
|
kp_2
|
|
kp_3
|
|
kp_4
|
|
kp_5
|
|
kp_6
|
|
kp_7
|
|
kp_8
|
|
kp_9
|
|
kp_A
|
|
kp_Add
|
|
kp_At
|
|
kp_B
|
|
kp_Backspace
|
|
kp_Binary
|
|
kp_BitAnd
|
|
kp_BitOr
|
|
kp_C
|
|
kp_Clear
|
|
kp_ClearEntry
|
|
kp_Colon
|
|
kp_Comma
|
|
kp_D
|
|
kp_Decimal
|
|
kp_Divide
|
|
kp_E
|
|
kp_Enter
|
|
kp_Equal
|
|
kp_EqualSign
|
|
kp_F
|
|
kp_Hash
|
|
kp_Hexadecimal
|
|
kp_LeftAngle
|
|
kp_LeftCurly
|
|
kp_LeftParent
|
|
kp_LogicAnd
|
|
kp_LogicOr
|
|
kp_MemAdd
|
|
kp_MemClear
|
|
kp_MemDivide
|
|
kp_MemMultiply
|
|
kp_MemRecall
|
|
kp_MemStore
|
|
kp_MemSubtract
|
|
kp_Multiply
|
|
kp_Not
|
|
kp_NumLock
|
|
kp_Octal
|
|
kp_Percent
|
|
kp_Period
|
|
kp_PlusMinus
|
|
kp_Pow
|
|
kp_RightAngle
|
|
kp_RightCurly
|
|
kp_RightParent
|
|
kp_Space
|
|
kp_Subtract
|
|
kp_Tab
|
|
kp_XOR
|
|
l
|
|
lang1
|
|
lang2
|
|
lang3
|
|
lang4
|
|
lang5
|
|
lang6
|
|
lang7
|
|
lang8
|
|
lang9
|
|
left
|
|
leftAlt
|
|
leftBracket
|
|
leftCtrl
|
|
leftShift
|
|
leftSuper
|
|
lockingCapsLock
|
|
lockingNumLock
|
|
lockingScrollLock
|
|
m
|
|
menu
|
|
minus
|
|
mute
|
|
n
|
|
none
|
|
o
|
|
oper
|
|
out_
|
|
p
|
|
pageDown
|
|
pageUp
|
|
paste
|
|
pause
|
|
period
|
|
postFail
|
|
printScreen
|
|
prior
|
|
q
|
|
quote
|
|
r
|
|
return_
|
|
right
|
|
rightAlt
|
|
rightBracket
|
|
rightCtrl
|
|
rightShift
|
|
rightSuper
|
|
s
|
|
scrollLock
|
|
select
|
|
semicolon
|
|
separator
|
|
slash
|
|
space
|
|
stop
|
|
sysReq
|
|
t
|
|
tab
|
|
thousandsSep
|
|
u
|
|
uK_Backslash
|
|
uK_Hash
|
|
undo
|
|
unknown
|
|
up
|
|
v
|
|
volumeDown
|
|
volumeUp
|
|
w
|
|
x
|
|
y
|
|
z
|