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_GAME_CONTROLS_H 6 #define _USB_HID_PAGE_GAME_CONTROLS_H 7 8 9 /* Reference: 10 * HID Usage Page 0x05: GAME CONTROLS 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_GAM_3D_GAME_CONTROLLER = 0x01, 18 B_HID_UID_GAM_PINBALL_DEVICE, 19 B_HID_UID_GAM_GUN_DEVICE, 20 21 B_HID_UID_GAM_POINT_OF_VIEW = 0x20, 22 B_HID_UID_GAM_TURN_RIGHT_LEFT, 23 B_HID_UID_GAM_PITCH_FORWARD_BACKWARD, 24 B_HID_UID_GAM_ROLL_RIGHT_LEFT, 25 B_HID_UID_GAM_MOVE_RIGHT_LEFT, 26 B_HID_UID_GAM_MOVE_FORWARD_BACKWARD, 27 B_HID_UID_GAM_MOVE_UP_DOWN, 28 B_HID_UID_GAM_LEAN_RIGHT_LEFT, 29 B_HID_UID_GAM_LEAN_FORWARD_BACKWARD, 30 B_HID_UID_GAM_HEIGHT_OF_POV, 31 B_HID_UID_GAM_FLIPPER, 32 B_HID_UID_GAM_SECONDARY_FLIPPER, 33 B_HID_UID_GAM_BUMP, 34 B_HID_UID_GAM_NEW_GAME, 35 B_HID_UID_GAM_SHOOT_BALL, 36 B_HID_UID_GAM_PLAYER, 37 B_HID_UID_GAM_GUN_BOLT, 38 B_HID_UID_GAM_GUN_CLIP, 39 B_HID_UID_GAM_GUN_SELECTOR, 40 B_HID_UID_GAM_GUN_SINGLE_SHOT, 41 B_HID_UID_GAM_GUN_BURST, 42 B_HID_UID_GAM_GUN_AUTOMATIC, 43 B_HID_UID_GAM_GUN_SAFETY, 44 B_HID_UID_GAM_GAMEPAD_FIRE_JUMP, 45 B_HID_UID_GAM_GAMEPAD_TRIGGER 46 }; 47 48 49 #endif // _USB_HID_PAGE_GAME_CONTROLS_H 50