Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 191c0c8

Browse filesBrowse files
committed
Add keyboard usage page
1 parent 917484a commit 191c0c8
Copy full SHA for 191c0c8

File tree

Expand file treeCollapse file tree

2 files changed

+230
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+230
-0
lines changed

‎usb_hid_usage/src/keyboard.rs

Copy file name to clipboard
+229Lines changed: 229 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,229 @@
1+
usage! {
2+
[0x07]
3+
0x01 ErrorRollOver
4+
0x02 PostFail
5+
0x03 ErrorUndefined
6+
7+
0x04 A
8+
0x05 B
9+
0x06 C
10+
0x07 D
11+
0x08 E
12+
0x09 F
13+
0x0a G
14+
0x0b H
15+
0x0c I
16+
0x0d J
17+
0x0e K
18+
0x0f L
19+
0x10 M
20+
0x11 N
21+
0x12 O
22+
0x13 P
23+
0x14 Q
24+
0x15 R
25+
0x16 S
26+
0x17 T
27+
0x18 U
28+
0x19 V
29+
0x1a W
30+
0x1b X
31+
0x1c Y
32+
0x1d Z
33+
0x1e N1
34+
0x1f N2
35+
0x20 N3
36+
0x21 N4
37+
0x22 N5
38+
0x23 N6
39+
0x24 N7
40+
0x25 N8
41+
0x26 N9
42+
0x27 N0
43+
0x28 Enter
44+
0x29 Escape
45+
0x2a Backspace
46+
0x2b Tab
47+
0x2c SpaceBar
48+
0x2d Minus
49+
0x2e Equal
50+
0x2f SquareLeft
51+
0x30 SquareRight
52+
0x31 Backslash
53+
0x32 Hash
54+
0x33 Semicolon
55+
0x34 SingleQuote
56+
0x35 GraveAccent
57+
0x36 Comma
58+
0x37 Dot
59+
0x38 ForwardSlash
60+
0x39 CapsLock
61+
0x3a F1
62+
0x3b F2
63+
0x3c F3
64+
0x3d F4
65+
0x3e F5
66+
0x3f F6
67+
0x40 F7
68+
0x41 F8
69+
0x42 F9
70+
0x43 F10
71+
0x44 F11
72+
0x45 F12
73+
0x46 PrintScreen
74+
0x47 ScrollLock
75+
0x48 Pause
76+
0x49 Insert
77+
0x4a Home
78+
0x4b PageUp
79+
0x4c Delete
80+
0x4d End
81+
0x4e PageDown
82+
0x4f RightArrow
83+
0x50 LeftArrow
84+
0x51 DownArrow
85+
0x52 UpArrow
86+
87+
0x53 KpNumLock
88+
0x54 KpForwardSlash
89+
0x55 KpStar
90+
0x56 KpMinus
91+
0x57 KpPlus
92+
0x58 KpEnter
93+
0x59 Kp1
94+
0x5a Kp2
95+
0x5b Kp3
96+
0x5c Kp4
97+
0x5d Kp5
98+
0x5e Kp6
99+
0x5f Kp7
100+
0x60 Kp8
101+
0x61 Kp9
102+
0x62 Kp0
103+
0x63 KpDot
104+
0x64 KpBackSlash
105+
106+
0x65 Application
107+
0x66 Power
108+
0x67 KpEqual
109+
0x68 F13
110+
0x69 F14
111+
0x6a F15
112+
0x6b F16
113+
0x6c F17
114+
0x6d F18
115+
0x6e F19
116+
0x6f F20
117+
0x70 F21
118+
0x71 F22
119+
0x72 F23
120+
0x73 F24
121+
0x74 Execute
122+
0x75 Help
123+
0x76 Menu
124+
0x77 Select
125+
0x78 Stop
126+
0x79 Again
127+
0x7a Undo
128+
0x7b Cut
129+
0x7c Copy
130+
0x7d Paste
131+
0x7e Find
132+
0x7f Mute
133+
0x80 VolumeUp
134+
0x81 VolumeDown
135+
0x82 LockingCapsLock
136+
0x83 LockingNumLock
137+
0x84 LockingScrollLock
138+
139+
0x85 KpComma
140+
0x86 KpEqualSign
141+
142+
0x87 International1
143+
0x88 International2
144+
0x89 International3
145+
0x8a International4
146+
0x8b International5
147+
0x8c International6
148+
0x8d International7
149+
0x8e International8
150+
0x8f International9
151+
0x90 Lang1
152+
0x91 Lang2
153+
0x92 Lang3
154+
0x93 Lang4
155+
0x94 Lang5
156+
0x95 Lang6
157+
0x96 Lang7
158+
0x97 Lang8
159+
0x98 Lang9
160+
161+
0x99 AlternateErase
162+
0x9a SysReq
163+
0x9b Cancel
164+
0x9c Clear
165+
0x9d Prior
166+
0x9e Return
167+
0x9f Separator
168+
0xa0 Out
169+
0xa1 Oper
170+
0xa2 ClearAgain
171+
0xa3 CrSelProps
172+
0xa4 ExSel
173+
174+
0xb0 Kp00
175+
0xb1 Kp000
176+
0xb2 ThousandsSeparator
177+
0xb3 Decimaleparator
178+
0xb4 CurrencyUnit
179+
0xb5 CurrencySubUnit
180+
0xb6 KpRoundOpen
181+
0xb7 KpRoundClose
182+
0xb8 KpCurlyOpen
183+
0xb9 KpCurlyClose
184+
0xba KpTab
185+
0xbb KpBackspace
186+
0xbc KpA
187+
0xbd KpB
188+
0xbe KpC
189+
0xbf KpD
190+
0xc0 KpE
191+
0xc1 KpF
192+
0xc2 KpXor
193+
0xc3 KpHat
194+
0xc4 KpPercent
195+
0xc5 KpLess
196+
0xc6 KpGreater
197+
0xc7 KpAnd
198+
0xc8 KpAndAnd
199+
0xc9 KpOr
200+
0xca KpOrOr
201+
0xcb KpColon
202+
0xcc KpHash
203+
0xcd KpSpace
204+
0xce KpAt
205+
0xcf KpExclamation
206+
0xd0 KpMemStore
207+
0xd1 KpMemRecall
208+
0xd2 KpMemClear
209+
0xd3 KpMemAdd
210+
0xd4 KpMemSubstract
211+
0xd5 KpMemMultiply
212+
0xd6 KpMemDivide
213+
0xd7 KpPlusMinus
214+
0xd8 KpClear
215+
0xd9 KpClearEntry
216+
0xda KpBinary
217+
0xdb KpOctal
218+
0xdc KpDecimal
219+
0xdd KpHexadecimal
220+
221+
0xe0 LeftControl
222+
0xe1 LeftShift
223+
0xe2 LeftAlt
224+
0xe3 LeftGui
225+
0xe4 RightControl
226+
0xe5 RightShift
227+
0xe6 RightAlt
228+
0xe7 RightGui
229+
}

‎usb_hid_usage/src/lib.rs

Copy file name to clipboardExpand all lines: usb_hid_usage/src/lib.rs
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ macro_rules! page {
7070

7171
page! {
7272
GenericDesktop generic_desktop
73+
Keyboard keyboard
7374
Button button
7475
}
7576

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.