Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
1.9 KiB

  1. //=========== Copyright Valve Corporation, All rights reserved. ===============//
  2. //
  3. // Purpose:
  4. //=============================================================================//
  5. #ifndef GAMEPADCODES_H
  6. #define GAMEPADCODES_H
  7. #ifdef _WIN32
  8. #pragma once
  9. #endif
  10. namespace panorama
  11. {
  12. enum GamePadCode
  13. {
  14. XK_NULL,
  15. XK_BUTTON_UP,
  16. XK_BUTTON_DOWN,
  17. XK_BUTTON_LEFT,
  18. XK_BUTTON_RIGHT,
  19. XK_BUTTON_START,
  20. XK_BUTTON_BACK,
  21. XK_BUTTON_STICK1,
  22. XK_BUTTON_STICK2,
  23. XK_BUTTON_A,
  24. XK_BUTTON_B,
  25. XK_BUTTON_X,
  26. XK_BUTTON_Y,
  27. XK_BUTTON_LEFT_SHOULDER,
  28. XK_BUTTON_RIGHT_SHOULDER,
  29. XK_BUTTON_LTRIGGER,
  30. XK_BUTTON_RTRIGGER,
  31. XK_STICK1_UP,
  32. XK_STICK1_DOWN,
  33. XK_STICK1_LEFT,
  34. XK_STICK1_RIGHT,
  35. XK_STICK2_UP,
  36. XK_STICK2_DOWN,
  37. XK_STICK2_LEFT,
  38. XK_STICK2_RIGHT,
  39. XK_STICK1_ANALOG,
  40. XK_STICK2_ANALOG,
  41. XK_BUTTON_GUIDE,
  42. STEAM_LEFTPAD_UP,
  43. STEAM_LEFTPAD_DOWN,
  44. STEAM_LEFTPAD_LEFT,
  45. STEAM_LEFTPAD_RIGHT,
  46. STEAM_LEFTPAD_ANALOG,
  47. STEAM_RIGHTPAD_UP,
  48. STEAM_RIGHTPAD_DOWN,
  49. STEAM_RIGHTPAD_LEFT,
  50. STEAM_RIGHTPAD_RIGHT,
  51. STEAM_RIGHTPAD_ANALOG,
  52. STEAM_LEFTSTICK_UP,
  53. STEAM_LEFTSTICK_DOWN,
  54. STEAM_LEFTSTICK_LEFT,
  55. STEAM_LEFTSTICK_RIGHT,
  56. STEAM_LEFTSTICK_ANALOG,
  57. STEAM_BUTTON_LTRIGGER,
  58. STEAM_BUTTON_RTRIGGER,
  59. STEAM_BUTTON_LSHOULDER,
  60. STEAM_BUTTON_RSHOULDER,
  61. STEAM_BUTTON_LBACK,
  62. STEAM_BUTTON_RBACK,
  63. STEAM_BUTTON_GUIDE,
  64. STEAM_BUTTON_SELECT,
  65. STEAM_BUTTON_START,
  66. STEAM_BUTTON_LPAD_CLICKED,
  67. STEAM_BUTTON_LPAD_TOUCH,
  68. STEAM_BUTTON_RPAD_CLICKED,
  69. STEAM_BUTTON_RPAD_TOUCH,
  70. STEAM_BUTTON_LPAD_DBLTAPPED,
  71. STEAM_BUTTON_RPAD_DBLTAPPED,
  72. STEAM_BUTTON_A,
  73. STEAM_BUTTON_B,
  74. STEAM_BUTTON_X,
  75. STEAM_BUTTON_Y,
  76. STEAM_BUTTON_DPAD_UP,
  77. STEAM_BUTTON_DPAD_RIGHT,
  78. STEAM_BUTTON_DPAD_DOWN,
  79. STEAM_BUTTON_DPAD_LEFT,
  80. XK_MAX_KEYS,
  81. };
  82. enum EJoystickAxis
  83. {
  84. JOY_AXIS_X = 0,
  85. JOY_AXIS_Y,
  86. JOY_AXIS_Z,
  87. JOY_AXIS_R,
  88. JOY_AXIS_U,
  89. JOY_AXIS_V,
  90. JOY_MAX_AXES,
  91. };
  92. enum EJoystickDeadzoneMode
  93. {
  94. JOYSTICK_DEADZONE_CROSS = 0,
  95. JOYSTICK_DEADZONE_SQUARE = 1,
  96. };
  97. } // namespace panorama
  98. #endif // GAMEPADCODES_H