xref: /haiku/headers/os/drivers/usb/USB_hid_page_generic_desktop.h (revision b6ec842de4c268c02649990c58c1f891869ca285)
1 /*
2  * Copyright 2004-2010, Haiku Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _USB_HID_PAGE_GENERIC_DESKTOP_H
6 #define _USB_HID_PAGE_GENERIC_DESKTOP_H
7 
8 
9 /* Reference:
10  *		HID Usage Page 0x01: GENERIC DESKTOP
11  *		HID Usage Tables Ver. 1.12
12  *		http://www.usb.org/developers/devclass_docs/Hut1_12.pdf
13  */
14 
15 // Usage IDs
16 enum {
17 	B_HID_UID_GD_POINTER = 0x1,
18 	B_HID_UID_GD_MOUSE,
19 
20 	B_HID_UID_GD_JOYSTICK = 0x4,
21 	B_HID_UID_GD_GAMEPAD,
22 	B_HID_UID_GD_KEYBOARD,
23 	B_HID_UID_GD_KEYPAD,
24 	B_HID_UID_GD_MULTIAXIS,
25 	B_HID_UID_GD_TABLET_PC_SYSTEM_CONTROLS,
26 
27 	B_HID_UID_GD_X = 0x30,
28 	B_HID_UID_GD_Y,
29 	B_HID_UID_GD_Z,
30 	B_HID_UID_GD_RX,
31 	B_HID_UID_GD_RY,
32 	B_HID_UID_GD_RZ,
33 	B_HID_UID_GD_SLIDER,
34 	B_HID_UID_GD_DIAL,
35 	B_HID_UID_GD_WHEEL,
36 	B_HID_UID_GD_HAT_SWITCH,
37 	B_HID_UID_GD_COUNTED_BUFFER,
38 	B_HID_UID_GD_BYTE_COUNT,
39 	B_HID_UID_GD_MOTION_WAKEUP,
40 	B_HID_UID_GD_START,
41 	B_HID_UID_GD_SELECT,
42 
43 	B_HID_UID_GD_VX = 0x40,
44 	B_HID_UID_GD_VY,
45 	B_HID_UID_GD_VZ,
46 	B_HID_UID_GD_VBRX,
47 	B_HID_UID_GD_VBRY,
48 	B_HID_UID_GD_VBRZ,
49 	B_HID_UID_GD_VNO,
50 	B_HID_UID_GD_FEATURE_NOTIFICATION,
51 	B_HID_UID_GD_RESOLUTION_MULTIPLIER,
52 
53 	B_HID_UID_GD_SYSTEM_CONTROL = 0x80,
54 	B_HID_UID_GD_SYSTEM_POWER_DOWN,
55 	B_HID_UID_GD_SYSTEM_SLEEP,
56 	B_HID_UID_GD_SYSTEM_WAKE_UP,
57 	B_HID_UID_GD_SYSTEM_CONTEXT_MENU,
58 	B_HID_UID_GD_SYSTEM_MAIN_MENU,
59 	B_HID_UID_GD_SYSTEM_APP_MENU,
60 	B_HID_UID_GD_SYSTEM_MENU_HELP,
61 	B_HID_UID_GD_SYSTEM_MENU_EXIT,
62 	B_HID_UID_GD_SYSTEM_MENU_SELECT,
63 	B_HID_UID_GD_SYSTEM_MENU_RIGHT,
64 	B_HID_UID_GD_SYSTEM_MENU_LEFT,
65 	B_HID_UID_GD_SYSTEM_MENU_UP,
66 	B_HID_UID_GD_SYSTEM_MENU_DOWN,
67 	B_HID_UID_GD_SYSTEM_COLD_RESTART,
68 	B_HID_UID_GD_SYSTEM_WARM_RESTART,
69 	B_HID_UID_GD_DPAD_UP,
70 	B_HID_UID_GD_DPAD_DOWN,
71 	B_HID_UID_GD_DPAD_RIGHT,
72 	B_HID_UID_GD_DPAD_LEFT,
73 
74 	B_HID_UID_GD_SYSTEM_DOCK = 0xa0,
75 	B_HID_UID_GD_SYSTEM_UNDOCK,
76 	B_HID_UID_GD_SYSTEM_SETUP,
77 	B_HID_UID_GD_SYSTEM_BREAK,
78 	B_HID_UID_GD_SYSTEM_DEBUGGER_BREAK,
79 	B_HID_UID_GD_APPLICATION_BREAK,
80 	B_HID_UID_GD_APPLICATION_DEBUGGER_BREAK,
81 	B_HID_UID_GD_SYSTEM_SPEAKER_MUTE,
82 	B_HID_UID_GD_SYSTEM_HIBERNATE,
83 
84 	B_HID_UID_GD_SYSTEM_DISPLAY_INVERT = 0xb0,
85 	B_HID_UID_GD_SYSTEM_DISPLAY_INTERNAL,
86 	B_HID_UID_GD_SYSTEM_DISPLAY_EXTERNAL,
87 	B_HID_UID_GD_SYSTEM_DISPLAY_BOTH,
88 	B_HID_UID_GD_SYSTEM_DISPLAY_DUAL,
89 	B_HID_UID_GD_SYSTEM_DISPLAY_TOGGLE,
90 	B_HID_UID_GD_SYSTEM_DISPLAY_SWAP,
91 	B_HID_UID_GD_SYSTEM_DISPLAY_LCD_AUTOSCALE
92 };
93 
94 
95 #endif // _USB_HID_PAGE_GENERIC_DESKTOP_H
96