source: mainline/uspace/lib/usbhid/src/consumer.c

Last change on this file was 1b20da0, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 7 years ago

style: Remove trailing whitespace on non-empty lines, in certain file types.

Command used: tools/srepl '\([^[:space:]]\)\s\+$' '\1' -- *.c *.h *.py *.sh *.s *.S *.ag

  • Property mode set to 100644
File size: 19.0 KB
Line 
1/*
2 * Copyright (c) 2011 Lubos Slovak
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * - Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * - Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * - The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29/** @addtogroup libusbhid
30 * @{
31 */
32/** @file
33 * UUSB multimedia key usage, to string mapping.
34 */
35
36#include <stdint.h>
37#include <stdio.h>
38#include <usb/hid/usages/consumer.h>
39
40static const char *usbhid_consumer_usage_str[] = {
41 [0x01] = "Consumer Control",
42 [0x02] = "Numeric Key Pad",
43 [0x03] = "Programmable Buttons",
44 [0x04] = "Microphone",
45 [0x05] = "Headphone",
46 [0x06] = "Graphic Equalizer",
47 [0x07] = "Reserved",
48 [0x08] = "Reserved",
49 [0x09] = "Reserved",
50 [0x0a] = "Reserved",
51 [0x0b] = "Reserved",
52 [0x0c] = "Reserved",
53 [0x0d] = "Reserved",
54 [0x0e] = "Reserved",
55 [0x0f] = "Reserved",
56 [0x10] = "Reserved",
57 [0x11] = "Reserved",
58 [0x12] = "Reserved",
59 [0x13] = "Reserved",
60 [0x14] = "Reserved",
61 [0x15] = "Reserved",
62 [0x16] = "Reserved",
63 [0x17] = "Reserved",
64 [0x18] = "Reserved",
65 [0x19] = "Reserved",
66 [0x1a] = "Reserved",
67 [0x1b] = "Reserved",
68 [0x1c] = "Reserved",
69 [0x1d] = "Reserved",
70 [0x1e] = "Reserved",
71 [0x1f] = "Reserved",
72 [0x20] = "+10",
73 [0x21] = "+100",
74 [0x22] = "AM/PM",
75 [0x23] = "Reserved",
76 [0x24] = "Reserved",
77 [0x25] = "Reserved",
78 [0x26] = "Reserved",
79 [0x27] = "Reserved",
80 [0x28] = "Reserved",
81 [0x29] = "Reserved",
82 [0x2a] = "Reserved",
83 [0x2b] = "Reserved",
84 [0x2c] = "Reserved",
85 [0x2d] = "Reserved",
86 [0x2e] = "Reserved",
87 [0x2f] = "Reserved",
88 [0x30] = "Reserved",
89 [0x31] = "Reserved",
90 [0x32] = "Reserved",
91 [0x33] = "Reserved",
92 [0x34] = "Reserved",
93 [0x35] = "Reserved",
94 [0x36] = "Reserved",
95 [0x37] = "Reserved",
96 [0x38] = "Reserved",
97 [0x39] = "Reserved",
98 [0x3a] = "Reserved",
99 [0x3b] = "Reserved",
100 [0x3c] = "Reserved",
101 [0x3d] = "Reserved",
102 [0x3e] = "Reserved",
103 [0x3f] = "Reserved",
104 [0x40] = "Menu",
105 [0x41] = "Menu Pick",
106 [0x42] = "Menu Up",
107 [0x43] = "Menu Down",
108 [0x44] = "Menu Left",
109 [0x45] = "Menu Right",
110 [0x46] = "Menu Escape",
111 [0x47] = "Menu Value Increase",
112 [0x48] = "Menu Value Decrease",
113 [0x49] = "Reserved",
114 [0x4a] = "Reserved",
115 [0x4b] = "Reserved",
116 [0x4c] = "Reserved",
117 [0x4d] = "Reserved",
118 [0x4e] = "Reserved",
119 [0x4f] = "Reserved",
120 [0x50] = "Reserved",
121 [0x51] = "Reserved",
122 [0x52] = "Reserved",
123 [0x53] = "Reserved",
124 [0x54] = "Reserved",
125 [0x55] = "Reserved",
126 [0x56] = "Reserved",
127 [0x57] = "Reserved",
128 [0x58] = "Reserved",
129 [0x59] = "Reserved",
130 [0x5a] = "Reserved",
131 [0x5b] = "Reserved",
132 [0x5c] = "Reserved",
133 [0x5d] = "Reserved",
134 [0x5e] = "Reserved",
135 [0x5f] = "Reserved",
136 [0x60] = "Data On Screen",
137 [0x61] = "Closed Caption",
138 [0x62] = "Closed Caption Select",
139 [0x63] = "VCR/TV",
140 [0x64] = "Broadcast Mode",
141 [0x65] = "Snapshot",
142 [0x66] = "Still",
143 [0x67] = "Reserved",
144 [0x68] = "Reserved",
145 [0x69] = "Reserved",
146 [0x6a] = "Reserved",
147 [0x6b] = "Reserved",
148 [0x6c] = "Reserved",
149 [0x6d] = "Reserved",
150 [0x6e] = "Reserved",
151 [0x6f] = "Reserved",
152 [0x70] = "Reserved",
153 [0x71] = "Reserved",
154 [0x72] = "Reserved",
155 [0x73] = "Reserved",
156 [0x74] = "Reserved",
157 [0x75] = "Reserved",
158 [0x76] = "Reserved",
159 [0x77] = "Reserved",
160 [0x78] = "Reserved",
161 [0x79] = "Reserved",
162 [0x7a] = "Reserved",
163 [0x7b] = "Reserved",
164 [0x7c] = "Reserved",
165 [0x7d] = "Reserved",
166 [0x7e] = "Reserved",
167 [0x7f] = "Reserved",
168 [0x80] = "Selection",
169 [0x81] = "Assign Selection",
170 [0x82] = "Mode Step",
171 [0x83] = "Recall Last",
172 [0x84] = "Enter Channel",
173 [0x85] = "Order Movie",
174 [0x86] = "Channel",
175 [0x87] = "Media Selection",
176 [0x88] = "Media Select Computer",
177 [0x89] = "Media Select TV",
178 [0x8a] = "Media Select WWW",
179 [0x8b] = "Media Select DVD",
180 [0x8c] = "Media Select Telephone",
181 [0x8d] = "Media Select Program Guide",
182 [0x8e] = "Media Select Video Phone",
183 [0x8f] = "Media Select Games",
184 [0x90] = "Media Select Messages",
185 [0x91] = "Media Select CD",
186 [0x92] = "Media Select VCR",
187 [0x93] = "Media Select Tuner",
188 [0x94] = "Quit",
189 [0x95] = "Help",
190 [0x96] = "Media Select Tape",
191 [0x97] = "Media Select Cable",
192 [0x98] = "Media Select Satellite",
193 [0x99] = "Media Select Security",
194 [0x9a] = "Media Select Home",
195 [0x9b] = "Media Select Call",
196 [0x9c] = "Channel Increment",
197 [0x9d] = "Channel Decrement",
198 [0x9e] = "Media Select SAP",
199 [0x9f] = "Reserved",
200 [0xa0] = "VCR Plus",
201 [0xa1] = "Once",
202 [0xa2] = "Daily",
203 [0xa3] = "Weekly",
204 [0xa4] = "Monthly",
205 [0xa5] = "Reserved",
206 [0xa6] = "Reserved",
207 [0xa7] = "Reserved",
208 [0xa8] = "Reserved",
209 [0xa9] = "Reserved",
210 [0xaa] = "Reserved",
211 [0xab] = "Reserved",
212 [0xac] = "Reserved",
213 [0xad] = "Reserved",
214 [0xae] = "Reserved",
215 [0xaf] = "Reserved",
216 [0xb0] = "Play",
217 [0xb1] = "Pause",
218 [0xb2] = "Record",
219 [0xb3] = "Fast Forward",
220 [0xb4] = "Rewind",
221 [0xb5] = "Scan Next Track",
222 [0xb6] = "Scan Previous Trac",
223 [0xb7] = "Stop",
224 [0xb8] = "Eject",
225 [0xb9] = "Random Play",
226 [0xba] = "Select Disc",
227 [0xbb] = "Enter Disc",
228 [0xbc] = "Repeat",
229 [0xbd] = "Tracking",
230 [0xbe] = "Track Normal",
231 [0xbf] = "Slow Tracking",
232 [0xc0] = "Frame Forward",
233 [0xc1] = "Frame Back",
234 [0xc2] = "Mark",
235 [0xc3] = "Clear Mark",
236 [0xc4] = "Repeat From Mark",
237 [0xc5] = "Return to Mark",
238 [0xc6] = "Search Mark Forward",
239 [0xc7] = "Search Mark Backwards",
240 [0xc8] = "Counter Reset",
241 [0xc9] = "Show Counter",
242 [0xca] = "Tracking Increment",
243 [0xcb] = "Tracking Decrement",
244 [0xcc] = "Stop/Eject",
245 [0xcd] = "Play/Pause",
246 [0xce] = "Play/Skip",
247 [0xcf] = "Reserved",
248 [0xd0] = "Reserved",
249 [0xd1] = "Reserved",
250 [0xd2] = "Reserved",
251 [0xd3] = "Reserved",
252 [0xd4] = "Reserved",
253 [0xd5] = "Reserved",
254 [0xd6] = "Reserved",
255 [0xd7] = "Reserved",
256 [0xd8] = "Reserved",
257 [0xd9] = "Reserved",
258 [0xda] = "Reserved",
259 [0xdb] = "Reserved",
260 [0xdc] = "Reserved",
261 [0xdd] = "Reserved",
262 [0xde] = "Reserved",
263 [0xdf] = "Reserved",
264 [0xe0] = "Volume",
265 [0xe1] = "Balance",
266 [0xe2] = "Mute",
267 [0xe3] = "Bass",
268 [0xe4] = "Treble",
269 [0xe5] = "Bass Boost",
270 [0xe6] = "Surround Mode",
271 [0xe7] = "Loudness",
272 [0xe8] = "MPX",
273 [0xe9] = "Volume Increment",
274 [0xea] = "Volume Decrement",
275 [0xeb] = "Reserved",
276 [0xec] = "Reserved",
277 [0xed] = "Reserved",
278 [0xee] = "Reserved",
279 [0xef] = "Reserved",
280 [0xf0] = "Speed Select",
281 [0xf1] = "Playback Speed",
282 [0xf2] = "Standard Play",
283 [0xf3] = "Long Play",
284 [0xf4] = "Extended Play",
285 [0xf5] = "Slow",
286 [0xf6] = "Reserved",
287 [0xf7] = "Reserved",
288 [0xf8] = "Reserved",
289 [0xf9] = "Reserved",
290 [0xfa] = "Reserved",
291 [0xfb] = "Reserved",
292 [0xfc] = "Reserved",
293 [0xfd] = "Reserved",
294 [0xfe] = "Reserved",
295 [0xff] = "Reserved",
296 [0x100] = "Fan Enable",
297 [0x101] = "Fan Speed",
298 [0x102] = "Light Enable",
299 [0x103] = "Light Illumination Level",
300 [0x104] = "Climate Control Enable",
301 [0x105] = "Room Temperature",
302 [0x106] = "Security Enable",
303 [0x107] = "Fire Alarm",
304 [0x108] = "Police Alarm",
305 [0x109] = "Proximity",
306 [0x10a] = "Motion",
307 [0x10b] = "Duress Alarm",
308 [0x10c] = "Holdup Alarm",
309 [0x10d] = "Medical Alarm",
310 [0x10e] = "Reserved",
311 [0x10f] = "Reserved",
312 [0x110] = "Reserved",
313 [0x111] = "Reserved",
314 [0x112] = "Reserved",
315 [0x113] = "Reserved",
316 [0x114] = "Reserved",
317 [0x115] = "Reserved",
318 [0x116] = "Reserved",
319 [0x117] = "Reserved",
320 [0x118] = "Reserved",
321 [0x119] = "Reserved",
322 [0x11a] = "Reserved",
323 [0x11b] = "Reserved",
324 [0x11c] = "Reserved",
325 [0x11d] = "Reserved",
326 [0x11e] = "Reserved",
327 [0x11f] = "Reserved",
328 [0x120] = "Reserved",
329 [0x121] = "Reserved",
330 [0x122] = "Reserved",
331 [0x123] = "Reserved",
332 [0x124] = "Reserved",
333 [0x125] = "Reserved",
334 [0x126] = "Reserved",
335 [0x127] = "Reserved",
336 [0x128] = "Reserved",
337 [0x129] = "Reserved",
338 [0x12a] = "Reserved",
339 [0x12b] = "Reserved",
340 [0x12c] = "Reserved",
341 [0x12d] = "Reserved",
342 [0x12e] = "Reserved",
343 [0x12f] = "Reserved",
344 [0x130] = "Reserved",
345 [0x131] = "Reserved",
346 [0x132] = "Reserved",
347 [0x133] = "Reserved",
348 [0x134] = "Reserved",
349 [0x135] = "Reserved",
350 [0x136] = "Reserved",
351 [0x137] = "Reserved",
352 [0x138] = "Reserved",
353 [0x139] = "Reserved",
354 [0x13a] = "Reserved",
355 [0x13b] = "Reserved",
356 [0x13c] = "Reserved",
357 [0x13d] = "Reserved",
358 [0x13e] = "Reserved",
359 [0x13f] = "Reserved",
360 [0x140] = "Reserved",
361 [0x141] = "Reserved",
362 [0x142] = "Reserved",
363 [0x143] = "Reserved",
364 [0x144] = "Reserved",
365 [0x145] = "Reserved",
366 [0x146] = "Reserved",
367 [0x147] = "Reserved",
368 [0x148] = "Reserved",
369 [0x149] = "Reserved",
370 [0x14a] = "Reserved",
371 [0x14b] = "Reserved",
372 [0x14c] = "Reserved",
373 [0x14d] = "Reserved",
374 [0x14e] = "Reserved",
375 [0x14f] = "Reserved",
376 [0x150] = "Balance Right",
377 [0x151] = "Balance Left",
378 [0x152] = "Bass Increment",
379 [0x153] = "Bass Decrement",
380 [0x154] = "Treble Increment",
381 [0x155] = "Treble Decrement",
382 [0x156] = "Reserved",
383 [0x157] = "Reserved",
384 [0x158] = "Reserved",
385 [0x159] = "Reserved",
386 [0x15a] = "Reserved",
387 [0x15b] = "Reserved",
388 [0x15c] = "Reserved",
389 [0x15d] = "Reserved",
390 [0x15e] = "Reserved",
391 [0x15f] = "Reserved",
392 [0x160] = "Speaker System",
393 [0x161] = "Channel Left",
394 [0x162] = "Channel Right",
395 [0x163] = "Channel Center",
396 [0x164] = "Channel Front",
397 [0x165] = "Channel Center Front",
398 [0x166] = "Channel Side",
399 [0x167] = "Channel Surround",
400 [0x168] = "Channel Low Frequency Enhancement",
401 [0x169] = "Channel Top",
402 [0x16a] = "Channel Unknown",
403 [0x16b] = "Reserved",
404 [0x16c] = "Reserved",
405 [0x16d] = "Reserved",
406 [0x16e] = "Reserved",
407 [0x16f] = "Reserved",
408 [0x170] = "Sub-channel",
409 [0x171] = "Sub-channel Increment",
410 [0x172] = "Sub-channel Decrement",
411 [0x173] = "Alternate Audio Increment",
412 [0x174] = "Alternate Audio Decrement",
413 [0x175] = "Reserved",
414 [0x176] = "Reserved",
415 [0x177] = "Reserved",
416 [0x178] = "Reserved",
417 [0x179] = "Reserved",
418 [0x17a] = "Reserved",
419 [0x17b] = "Reserved",
420 [0x17c] = "Reserved",
421 [0x17d] = "Reserved",
422 [0x17e] = "Reserved",
423 [0x17f] = "Reserved",
424 [0x180] = "Application Launch Buttons",
425 [0x181] = "AL Launch Buttion Configuration Tool",
426 [0x182] = "AL Programmable Button Configuration",
427 [0x183] = "AL Consumer Control Configuration",
428 [0x184] = "AL Word Processor",
429 [0x185] = "AL Text Editor",
430 [0x186] = "AL Spreadsheet",
431 [0x187] = "AL Graphics Editor",
432 [0x188] = "AL Presentation App",
433 [0x189] = "AL Database App",
434 [0x18a] = "AL Email Reader",
435 [0x18b] = "AL Newsreader",
436 [0x18c] = "AL Voicemail",
437 [0x18d] = "AL Contacts/Address Book",
438 [0x18e] = "AL Calendar/Schedule",
439 [0x18f] = "AL Task/Project Manager",
440 [0x190] = "AL Log/Journal/Timecard",
441 [0x191] = "AL Checkbook/Finance",
442 [0x192] = "AL Calculator",
443 [0x193] = "AL A/V Capture/Playback",
444 [0x194] = "AL Local Machine Browser",
445 [0x195] = "AL LAN/WAN Browser",
446 [0x196] = "AL Internet Browser",
447 [0x197] = "AL Remote Networking/ISP Connect",
448 [0x198] = "AL Network Conference",
449 [0x199] = "AL Network Chat",
450 [0x19a] = "AL Telephony/Dialer",
451 [0x19b] = "AL Logon",
452 [0x19c] = "AL Logoff",
453 [0x19d] = "AL Logon/Logoff",
454 [0x19e] = "AL Terminal Lock/Screensaver",
455 [0x19f] = "AL Control Panel",
456 [0x1a0] = "AL Command Line Processor/Run",
457 [0x1a1] = "AL Process/Task Manager",
458 [0x1a2] = "AL Select Task/Application",
459 [0x1a3] = "AL Next Task/Application",
460 [0x1a4] = "AL Previous Task/Application",
461 [0x1a5] = "AL Preemptive Halt Task/Application",
462 [0x1a6] = "AL Integrated Help Center",
463 [0x1a7] = "AL Documents",
464 [0x1a8] = "AL Thesaurus",
465 [0x1a9] = "AL Dictionary",
466 [0x1aa] = "AL Desktop",
467 [0x1ab] = "AL Spell Check",
468 [0x1ac] = "AL Grammar Check",
469 [0x1ad] = "AL Wireless Status",
470 [0x1ae] = "AL Keyboard Layout",
471 [0x1af] = "AL Virus Protection",
472 [0x1b0] = "AL Encryption",
473 [0x1b1] = "AL Screen Saver",
474 [0x1b2] = "AL Alarms",
475 [0x1b3] = "AL Clock",
476 [0x1b4] = "AL File Browser",
477 [0x1b5] = "AL Power Status",
478 [0x1b6] = "AL Image Browser",
479 [0x1b7] = "AL Audio Browser",
480 [0x1b8] = "AL Movie Browser",
481 [0x1b9] = "AL Digital Rights Manager",
482 [0x1ba] = "AL Digital Wallet",
483 [0x1bb] = "Reserved",
484 [0x1bc] = "AL Instant Messaging",
485 [0x1bd] = "AL OEM Features Tips/Tutorial Browser",
486 [0x1be] = "AL OEM Help",
487 [0x1bf] = "AL Online Community",
488 [0x1c0] = "AL Entertainment Content Browser",
489 [0x1c1] = "AL Online Shopping Browser",
490 [0x1c2] = "AL SmartCard Information/Help",
491 [0x1c3] = "AL Market Monitor/Finance Browser",
492 [0x1c4] = "AL Customized Corporate News Browser",
493 [0x1c5] = "AL Online Activity Browser",
494 [0x1c6] = "AL Research/Search Browser",
495 [0x1c7] = "AL Audio Player",
496 [0x1c8] = "Reserved",
497 [0x1c9] = "Reserved",
498 [0x1ca] = "Reserved",
499 [0x1cb] = "Reserved",
500 [0x1cc] = "Reserved",
501 [0x1cd] = "Reserved",
502 [0x1ce] = "Reserved",
503 [0x1cf] = "Reserved",
504 [0x1d0] = "Reserved",
505 [0x1d1] = "Reserved",
506 [0x1d2] = "Reserved",
507 [0x1d3] = "Reserved",
508 [0x1d4] = "Reserved",
509 [0x1d5] = "Reserved",
510 [0x1d6] = "Reserved",
511 [0x1d7] = "Reserved",
512 [0x1d8] = "Reserved",
513 [0x1d9] = "Reserved",
514 [0x1da] = "Reserved",
515 [0x1db] = "Reserved",
516 [0x1dc] = "Reserved",
517 [0x1dd] = "Reserved",
518 [0x1de] = "Reserved",
519 [0x1df] = "Reserved",
520 [0x1e0] = "Reserved",
521 [0x1e1] = "Reserved",
522 [0x1e2] = "Reserved",
523 [0x1e3] = "Reserved",
524 [0x1e4] = "Reserved",
525 [0x1e5] = "Reserved",
526 [0x1e6] = "Reserved",
527 [0x1e7] = "Reserved",
528 [0x1e8] = "Reserved",
529 [0x1e9] = "Reserved",
530 [0x1ea] = "Reserved",
531 [0x1eb] = "Reserved",
532 [0x1ec] = "Reserved",
533 [0x1ed] = "Reserved",
534 [0x1ee] = "Reserved",
535 [0x1ef] = "Reserved",
536 [0x1f0] = "Reserved",
537 [0x1f1] = "Reserved",
538 [0x1f2] = "Reserved",
539 [0x1f3] = "Reserved",
540 [0x1f4] = "Reserved",
541 [0x1f5] = "Reserved",
542 [0x1f6] = "Reserved",
543 [0x1f7] = "Reserved",
544 [0x1f8] = "Reserved",
545 [0x1f9] = "Reserved",
546 [0x1fa] = "Reserved",
547 [0x1fb] = "Reserved",
548 [0x1fc] = "Reserved",
549 [0x1fd] = "Reserved",
550 [0x1fe] = "Reserved",
551 [0x1ff] = "Reserved",
552 [0x200] = "Generic GUI Application Controls",
553 [0x201] = "AC New",
554 [0x202] = "AC Open",
555 [0x203] = "AC Close",
556 [0x204] = "AC Exit",
557 [0x205] = "AC Maximize",
558 [0x206] = "AC Minimize",
559 [0x207] = "AC Save",
560 [0x208] = "AC Print",
561 [0x209] = "AC Properties",
562 [0x20a] = "",
563 [0x20b] = "",
564 [0x20c] = "",
565 [0x20d] = "",
566 [0x20e] = "",
567 [0x20f] = "",
568 [0x210] = "",
569 [0x211] = "",
570 [0x212] = "",
571 [0x213] = "",
572 [0x214] = "",
573 [0x215] = "",
574 [0x216] = "",
575 [0x217] = "",
576 [0x218] = "",
577 [0x219] = "",
578 [0x21a] = "AC Undo",
579 [0x21b] = "AC Copy",
580 [0x21c] = "AC Cut",
581 [0x21d] = "AC Paste",
582 [0x21e] = "AC Select All",
583 [0x21f] = "AC Find",
584 [0x220] = "AC Find and Replace",
585 [0x221] = "AC Search",
586 [0x222] = "AC Go To",
587 [0x223] = "AC Home",
588 [0x224] = "AC Back",
589 [0x225] = "AC Forward",
590 [0x226] = "AC Stop",
591 [0x227] = "AC Refresh",
592 [0x228] = "AC Previous Link",
593 [0x229] = "AC Next Link",
594 [0x22a] = "AC Bookmarks",
595 [0x22b] = "AC History",
596 [0x22c] = "AC Subscriptions",
597 [0x22d] = "AC Zoom In",
598 [0x22e] = "AC Zoom Out",
599 [0x22f] = "AC Zoom",
600 [0x230] = "AC Full Screen View",
601 [0x231] = "AC Normal View",
602 [0x232] = "AC View Toggle",
603 [0x233] = "AC Scroll Up",
604 [0x234] = "AC Scroll Down",
605 [0x235] = "AC Scroll",
606 [0x236] = "AC Pan Left",
607 [0x237] = "AC Pan Right",
608 [0x238] = "AC Pan",
609 [0x239] = "AC New Window",
610 [0x23a] = "AC Tile Horizontally",
611 [0x23b] = "AC Tile Vertically",
612 [0x23c] = "AC Format",
613 [0x23d] = "AC Edit",
614 [0x23e] = "AC Bold",
615 [0x23f] = "AC Italics",
616 [0x240] = "AC Undeline",
617 [0x241] = "AC Strikethrough",
618 [0x242] = "AC Subscript",
619 [0x243] = "AC Superscript",
620 [0x244] = "AC All Caps",
621 [0x245] = "AC Rotate",
622 [0x246] = "AC Resize",
623 [0x247] = "AC Flip Horizontal",
624 [0x248] = "AC Flip Vertical",
625 [0x249] = "AC Mirror Horizontal",
626 [0x24a] = "AC Mirror Vertical",
627 [0x24b] = "AC Font Select",
628 [0x24c] = "AC Font Color",
629 [0x24d] = "AC Font Size",
630 [0x24e] = "AC Justify Left",
631 [0x24f] = "AC Justify Center H",
632 [0x250] = "AC Justify Right",
633 [0x251] = "AC Justify Block H",
634 [0x252] = "AC Justify Top",
635 [0x253] = "AC Justify Center V",
636 [0x254] = "AC Justify Bottom",
637 [0x255] = "AC Justify Block V",
638 [0x256] = "AC Indent Decrease",
639 [0x257] = "AC Indent Increase",
640 [0x258] = "AC Numbered List",
641 [0x259] = "AC Restart Numbering",
642 [0x25a] = "AC Bulleted List",
643 [0x25b] = "AC Promote",
644 [0x25c] = "AC Demote",
645 [0x25d] = "AC Yes",
646 [0x25e] = "AC No",
647 [0x25f] = "AC Cancel",
648 [0x260] = "AC Catalog",
649 [0x261] = "AC Buy/Checkout",
650 [0x262] = "AC Add to Cart",
651 [0x263] = "AC Expand",
652 [0x264] = "AC Expand All",
653 [0x265] = "AC Collapse",
654 [0x266] = "AC Collapse All",
655 [0x267] = "AC Print Preview",
656 [0x268] = "AC Paste Special",
657 [0x269] = "AC Insert Mode",
658 [0x26a] = "AC Delete",
659 [0x26b] = "AC Lock",
660 [0x26c] = "AC Unlock",
661 [0x26d] = "AC Protect",
662 [0x26e] = "AC Unprotect",
663 [0x26f] = "AC Attach Comment",
664 [0x270] = "AC Delete Comment",
665 [0x271] = "AC View Comment",
666 [0x272] = "AC Select Word",
667 [0x273] = "AC Select Sentence",
668 [0x274] = "AC Select Paragraph",
669 [0x275] = "AC Select Column",
670 [0x276] = "AC Select Row",
671 [0x277] = "AC Select Table",
672 [0x278] = "AC Select Object",
673 [0x279] = "AC Redo/Repeat",
674 [0x27a] = "AC Sort",
675 [0x27b] = "AC Sort Ascending",
676 [0x27c] = "AC Sort Descending",
677 [0x27d] = "AC Filter",
678 [0x27e] = "AC Set Clock",
679 [0x27f] = "AC View Clock",
680 [0x280] = "AC Select Time Zone",
681 [0x281] = "AC Edit Time Zones",
682 [0x282] = "AC Set Alarm",
683 [0x283] = "AC Clear Alarm",
684 [0x284] = "AC Snooze Alarm",
685 [0x285] = "AC Reset Alarm",
686 [0x286] = "AC Synchronize",
687 [0x287] = "AC Send/Receive",
688 [0x288] = "AC Send To",
689 [0x289] = "AC Reply",
690 [0x28a] = "AC Reply All",
691 [0x28b] = "AC Forward Msg",
692 [0x28c] = "AC Send",
693 [0x28d] = "AC Attach File",
694 [0x28e] = "AC Upload",
695 [0x28f] = "AC Download (Save Target As)",
696 [0x290] = "AC Set Borders",
697 [0x291] = "AC Insert Row",
698 [0x292] = "AC Insert Column",
699 [0x293] = "AC Insert File",
700 [0x294] = "AC Insert Picture",
701 [0x295] = "AC Insert Object",
702 [0x296] = "AC Insert Symbol",
703 [0x297] = "AC Save and Close",
704 [0x298] = "AC Rename",
705 [0x299] = "AC Merge",
706 [0x29a] = "AC Split",
707 [0x29b] = "AC Distrubute Horizontally",
708 [0x29c] = "AC Distrubute Vertically"
709};
710
711/**
712 * Translates USB HID Usages from the Consumer Page into their string
713 * representation.
714 *
715 * @param usage USB HID Consumer Page Usage number.
716 *
717 * @retval HelenOS key code corresponding to the given USB Consumer Page Usage.
718 */
719const char *usbhid_multimedia_usage_to_str(unsigned usage)
720{
721 static const size_t map_length =
722 sizeof(usbhid_consumer_usage_str) / sizeof(char *);
723
724 if (usage >= map_length)
725 return "Unknown usage";
726
727 return usbhid_consumer_usage_str[usage];
728}
729
730/**
731 * @}
732 */
Note: See TracBrowser for help on using the repository browser.