xref: /haiku/headers/os/drivers/usb/USB_hid_page_game_controls.h (revision b6ec842de4c268c02649990c58c1f891869ca285)
1*b6ec842dSStephan Aßmus /*
2*b6ec842dSStephan Aßmus  * Copyright 2004-2010, Haiku Inc. All Rights Reserved.
3*b6ec842dSStephan Aßmus  * Distributed under the terms of the MIT License.
4*b6ec842dSStephan Aßmus  */
5*b6ec842dSStephan Aßmus #ifndef _USB_HID_PAGE_GAME_CONTROLS_H
6*b6ec842dSStephan Aßmus #define _USB_HID_PAGE_GAME_CONTROLS_H
7*b6ec842dSStephan Aßmus 
8*b6ec842dSStephan Aßmus 
9*b6ec842dSStephan Aßmus /* Reference:
10*b6ec842dSStephan Aßmus  *		HID Usage Page 0x05: GAME CONTROLS
11*b6ec842dSStephan Aßmus  *		HID Usage Tables Ver. 1.12
12*b6ec842dSStephan Aßmus  *		http://www.usb.org/developers/devclass_docs/Hut1_12.pdf
13*b6ec842dSStephan Aßmus  */
14*b6ec842dSStephan Aßmus 
15*b6ec842dSStephan Aßmus // Usage IDs
16*b6ec842dSStephan Aßmus enum {
17*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_3D_GAME_CONTROLLER = 0x01,
18*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_PINBALL_DEVICE,
19*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_GUN_DEVICE,
20*b6ec842dSStephan Aßmus 
21*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_POINT_OF_VIEW = 0x20,
22*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_TURN_RIGHT_LEFT,
23*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_PITCH_FORWARD_BACKWARD,
24*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_ROLL_RIGHT_LEFT,
25*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_MOVE_RIGHT_LEFT,
26*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_MOVE_FORWARD_BACKWARD,
27*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_MOVE_UP_DOWN,
28*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_LEAN_RIGHT_LEFT,
29*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_LEAN_FORWARD_BACKWARD,
30*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_HEIGHT_OF_POV,
31*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_FLIPPER,
32*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_SECONDARY_FLIPPER,
33*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_BUMP,
34*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_NEW_GAME,
35*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_SHOOT_BALL,
36*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_PLAYER,
37*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_GUN_BOLT,
38*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_GUN_CLIP,
39*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_GUN_SELECTOR,
40*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_GUN_SINGLE_SHOT,
41*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_GUN_BURST,
42*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_GUN_AUTOMATIC,
43*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_GUN_SAFETY,
44*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_GAMEPAD_FIRE_JUMP,
45*b6ec842dSStephan Aßmus 	B_HID_UID_GAM_GAMEPAD_TRIGGER
46*b6ec842dSStephan Aßmus };
47*b6ec842dSStephan Aßmus 
48*b6ec842dSStephan Aßmus 
49*b6ec842dSStephan Aßmus #endif // _USB_HID_PAGE_GAME_CONTROLS_H
50