hid_usage_game.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* This file is the part of the LUS32 project
  2. *
  3. * Copyright ©2016 Dmitry Filimonchuk <dmitrystu[at]gmail[dot]com>
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. #ifndef _USB_HID_USAGE_H_
  16. #define _USB_HID_USAGE_H_
  17. /**\ingroup USB_HID
  18. * \addtogroup USB_HID_USAGES_GAME HID Usage Tables for Game
  19. * \brief Contains USB HID Usages definitions for Game Controls Page
  20. * \details This module based on
  21. * + [HID Usage Tables Version 1.12](https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf)
  22. * @{ */
  23. #define HID_PAGE_GAME 0x05
  24. #define HID_GAME_3D_GAME_CONTROLLER 0x01
  25. #define HID_GAME_PINBALL_DEVICE 0x02
  26. #define HID_GAME_GUN_DEVICE 0x03
  27. #define HID_GAME_POINT_OF_VIEW 0x20
  28. #define HID_GAME_TURN_LEFT_RIGHT 0x21
  29. #define HID_GAME_PITCH_FWD_BACK 0x22
  30. #define HID_GAME_ROLL_LEFT_RIGHT 0x23
  31. #define HID_GAME_MOVE_LEFT_RIGHT 0x24
  32. #define HID_GAME_MOVE_FWD_BACK 0x25
  33. #define HID_GAME_MOVE_UP_DOWN 0x26
  34. #define HID_GAME_LEAN_LEFT_RIGHT 0x27
  35. #define HID_GAME_LEAN_FWD_BACK 0x28
  36. #define HID_GAME_HEIGHT_OF_POV 0x29
  37. #define HID_GAME_FLIPPER 0x2A
  38. #define HID_GAME_SECONDARY_FLIPPER 0x2B
  39. #define HID_GAME_BUMP 0x2C
  40. #define HID_GAME_NEW_GAME 0x2D
  41. #define HID_GAME_SHOOT_BALL 0x2E
  42. #define HID_GAME_PLAYER 0x2F
  43. #define HID_GAME_GUN_BOLT 0x30
  44. #define HID_GAME_GUN_CLIP 0x31
  45. #define HID_GAME_GUN_SELECTOR 0x32
  46. #define HID_GAME_GUN_SINGLE_SHOT 0x33
  47. #define HID_GAME_GUN_BURST 0x34
  48. #define HID_GAME_GUN_AUTOMATIC 0x35
  49. #define HID_GAME_GUN_SAFETY 0x36
  50. #define HID_GAME_GANEPAD_FIRE_JUMP 0x37
  51. #define HID_GAME_GAMEPAD_TRIGGER 0x38
  52. #endif