Add keyboard usage page
This commit is contained in:
229
usb_hid_usage/src/keyboard.rs
Normal file
229
usb_hid_usage/src/keyboard.rs
Normal file
@ -0,0 +1,229 @@
|
|||||||
|
usage! {
|
||||||
|
[0x07]
|
||||||
|
0x01 ErrorRollOver
|
||||||
|
0x02 PostFail
|
||||||
|
0x03 ErrorUndefined
|
||||||
|
|
||||||
|
0x04 A
|
||||||
|
0x05 B
|
||||||
|
0x06 C
|
||||||
|
0x07 D
|
||||||
|
0x08 E
|
||||||
|
0x09 F
|
||||||
|
0x0a G
|
||||||
|
0x0b H
|
||||||
|
0x0c I
|
||||||
|
0x0d J
|
||||||
|
0x0e K
|
||||||
|
0x0f L
|
||||||
|
0x10 M
|
||||||
|
0x11 N
|
||||||
|
0x12 O
|
||||||
|
0x13 P
|
||||||
|
0x14 Q
|
||||||
|
0x15 R
|
||||||
|
0x16 S
|
||||||
|
0x17 T
|
||||||
|
0x18 U
|
||||||
|
0x19 V
|
||||||
|
0x1a W
|
||||||
|
0x1b X
|
||||||
|
0x1c Y
|
||||||
|
0x1d Z
|
||||||
|
0x1e N1
|
||||||
|
0x1f N2
|
||||||
|
0x20 N3
|
||||||
|
0x21 N4
|
||||||
|
0x22 N5
|
||||||
|
0x23 N6
|
||||||
|
0x24 N7
|
||||||
|
0x25 N8
|
||||||
|
0x26 N9
|
||||||
|
0x27 N0
|
||||||
|
0x28 Enter
|
||||||
|
0x29 Escape
|
||||||
|
0x2a Backspace
|
||||||
|
0x2b Tab
|
||||||
|
0x2c SpaceBar
|
||||||
|
0x2d Minus
|
||||||
|
0x2e Equal
|
||||||
|
0x2f SquareLeft
|
||||||
|
0x30 SquareRight
|
||||||
|
0x31 Backslash
|
||||||
|
0x32 Hash
|
||||||
|
0x33 Semicolon
|
||||||
|
0x34 SingleQuote
|
||||||
|
0x35 GraveAccent
|
||||||
|
0x36 Comma
|
||||||
|
0x37 Dot
|
||||||
|
0x38 ForwardSlash
|
||||||
|
0x39 CapsLock
|
||||||
|
0x3a F1
|
||||||
|
0x3b F2
|
||||||
|
0x3c F3
|
||||||
|
0x3d F4
|
||||||
|
0x3e F5
|
||||||
|
0x3f F6
|
||||||
|
0x40 F7
|
||||||
|
0x41 F8
|
||||||
|
0x42 F9
|
||||||
|
0x43 F10
|
||||||
|
0x44 F11
|
||||||
|
0x45 F12
|
||||||
|
0x46 PrintScreen
|
||||||
|
0x47 ScrollLock
|
||||||
|
0x48 Pause
|
||||||
|
0x49 Insert
|
||||||
|
0x4a Home
|
||||||
|
0x4b PageUp
|
||||||
|
0x4c Delete
|
||||||
|
0x4d End
|
||||||
|
0x4e PageDown
|
||||||
|
0x4f RightArrow
|
||||||
|
0x50 LeftArrow
|
||||||
|
0x51 DownArrow
|
||||||
|
0x52 UpArrow
|
||||||
|
|
||||||
|
0x53 KpNumLock
|
||||||
|
0x54 KpForwardSlash
|
||||||
|
0x55 KpStar
|
||||||
|
0x56 KpMinus
|
||||||
|
0x57 KpPlus
|
||||||
|
0x58 KpEnter
|
||||||
|
0x59 Kp1
|
||||||
|
0x5a Kp2
|
||||||
|
0x5b Kp3
|
||||||
|
0x5c Kp4
|
||||||
|
0x5d Kp5
|
||||||
|
0x5e Kp6
|
||||||
|
0x5f Kp7
|
||||||
|
0x60 Kp8
|
||||||
|
0x61 Kp9
|
||||||
|
0x62 Kp0
|
||||||
|
0x63 KpDot
|
||||||
|
0x64 KpBackSlash
|
||||||
|
|
||||||
|
0x65 Application
|
||||||
|
0x66 Power
|
||||||
|
0x67 KpEqual
|
||||||
|
0x68 F13
|
||||||
|
0x69 F14
|
||||||
|
0x6a F15
|
||||||
|
0x6b F16
|
||||||
|
0x6c F17
|
||||||
|
0x6d F18
|
||||||
|
0x6e F19
|
||||||
|
0x6f F20
|
||||||
|
0x70 F21
|
||||||
|
0x71 F22
|
||||||
|
0x72 F23
|
||||||
|
0x73 F24
|
||||||
|
0x74 Execute
|
||||||
|
0x75 Help
|
||||||
|
0x76 Menu
|
||||||
|
0x77 Select
|
||||||
|
0x78 Stop
|
||||||
|
0x79 Again
|
||||||
|
0x7a Undo
|
||||||
|
0x7b Cut
|
||||||
|
0x7c Copy
|
||||||
|
0x7d Paste
|
||||||
|
0x7e Find
|
||||||
|
0x7f Mute
|
||||||
|
0x80 VolumeUp
|
||||||
|
0x81 VolumeDown
|
||||||
|
0x82 LockingCapsLock
|
||||||
|
0x83 LockingNumLock
|
||||||
|
0x84 LockingScrollLock
|
||||||
|
|
||||||
|
0x85 KpComma
|
||||||
|
0x86 KpEqualSign
|
||||||
|
|
||||||
|
0x87 International1
|
||||||
|
0x88 International2
|
||||||
|
0x89 International3
|
||||||
|
0x8a International4
|
||||||
|
0x8b International5
|
||||||
|
0x8c International6
|
||||||
|
0x8d International7
|
||||||
|
0x8e International8
|
||||||
|
0x8f International9
|
||||||
|
0x90 Lang1
|
||||||
|
0x91 Lang2
|
||||||
|
0x92 Lang3
|
||||||
|
0x93 Lang4
|
||||||
|
0x94 Lang5
|
||||||
|
0x95 Lang6
|
||||||
|
0x96 Lang7
|
||||||
|
0x97 Lang8
|
||||||
|
0x98 Lang9
|
||||||
|
|
||||||
|
0x99 AlternateErase
|
||||||
|
0x9a SysReq
|
||||||
|
0x9b Cancel
|
||||||
|
0x9c Clear
|
||||||
|
0x9d Prior
|
||||||
|
0x9e Return
|
||||||
|
0x9f Separator
|
||||||
|
0xa0 Out
|
||||||
|
0xa1 Oper
|
||||||
|
0xa2 ClearAgain
|
||||||
|
0xa3 CrSelProps
|
||||||
|
0xa4 ExSel
|
||||||
|
|
||||||
|
0xb0 Kp00
|
||||||
|
0xb1 Kp000
|
||||||
|
0xb2 ThousandsSeparator
|
||||||
|
0xb3 Decimaleparator
|
||||||
|
0xb4 CurrencyUnit
|
||||||
|
0xb5 CurrencySubUnit
|
||||||
|
0xb6 KpRoundOpen
|
||||||
|
0xb7 KpRoundClose
|
||||||
|
0xb8 KpCurlyOpen
|
||||||
|
0xb9 KpCurlyClose
|
||||||
|
0xba KpTab
|
||||||
|
0xbb KpBackspace
|
||||||
|
0xbc KpA
|
||||||
|
0xbd KpB
|
||||||
|
0xbe KpC
|
||||||
|
0xbf KpD
|
||||||
|
0xc0 KpE
|
||||||
|
0xc1 KpF
|
||||||
|
0xc2 KpXor
|
||||||
|
0xc3 KpHat
|
||||||
|
0xc4 KpPercent
|
||||||
|
0xc5 KpLess
|
||||||
|
0xc6 KpGreater
|
||||||
|
0xc7 KpAnd
|
||||||
|
0xc8 KpAndAnd
|
||||||
|
0xc9 KpOr
|
||||||
|
0xca KpOrOr
|
||||||
|
0xcb KpColon
|
||||||
|
0xcc KpHash
|
||||||
|
0xcd KpSpace
|
||||||
|
0xce KpAt
|
||||||
|
0xcf KpExclamation
|
||||||
|
0xd0 KpMemStore
|
||||||
|
0xd1 KpMemRecall
|
||||||
|
0xd2 KpMemClear
|
||||||
|
0xd3 KpMemAdd
|
||||||
|
0xd4 KpMemSubstract
|
||||||
|
0xd5 KpMemMultiply
|
||||||
|
0xd6 KpMemDivide
|
||||||
|
0xd7 KpPlusMinus
|
||||||
|
0xd8 KpClear
|
||||||
|
0xd9 KpClearEntry
|
||||||
|
0xda KpBinary
|
||||||
|
0xdb KpOctal
|
||||||
|
0xdc KpDecimal
|
||||||
|
0xdd KpHexadecimal
|
||||||
|
|
||||||
|
0xe0 LeftControl
|
||||||
|
0xe1 LeftShift
|
||||||
|
0xe2 LeftAlt
|
||||||
|
0xe3 LeftGui
|
||||||
|
0xe4 RightControl
|
||||||
|
0xe5 RightShift
|
||||||
|
0xe6 RightAlt
|
||||||
|
0xe7 RightGui
|
||||||
|
}
|
@ -70,6 +70,7 @@ macro_rules! page {
|
|||||||
|
|
||||||
page! {
|
page! {
|
||||||
GenericDesktop generic_desktop
|
GenericDesktop generic_desktop
|
||||||
|
Keyboard keyboard
|
||||||
Button button
|
Button button
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user