1
0

usb_ids.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /*
  2. Simple DirectMedia Layer
  3. Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
  4. This software is provided 'as-is', without any express or implied
  5. warranty. In no event will the authors be held liable for any damages
  6. arising from the use of this software.
  7. Permission is granted to anyone to use this software for any purpose,
  8. including commercial applications, and to alter it and redistribute it
  9. freely, subject to the following restrictions:
  10. 1. The origin of this software must not be misrepresented; you must not
  11. claim that you wrote the original software. If you use this software
  12. in a product, an acknowledgment in the product documentation would be
  13. appreciated but is not required.
  14. 2. Altered source versions must be plainly marked as such, and must not be
  15. misrepresented as being the original software.
  16. 3. This notice may not be removed or altered from any source distribution.
  17. */
  18. #ifndef usb_ids_h_
  19. #define usb_ids_h_
  20. /* Definitions of useful USB VID/PID values */
  21. #define USB_VENDOR_AMAZON 0x1949
  22. #define USB_VENDOR_APPLE 0x05ac
  23. #define USB_VENDOR_GOOGLE 0x18d1
  24. #define USB_VENDOR_HYPERKIN 0x2e24
  25. #define USB_VENDOR_MICROSOFT 0x045e
  26. #define USB_VENDOR_NINTENDO 0x057e
  27. #define USB_VENDOR_NVIDIA 0x0955
  28. #define USB_VENDOR_PDP 0x0e6f
  29. #define USB_VENDOR_POWERA 0x24c6
  30. #define USB_VENDOR_POWERA_ALT 0x20d6
  31. #define USB_VENDOR_RAZER 0x1532
  32. #define USB_VENDOR_SHENZHEN 0x0079
  33. #define USB_VENDOR_SONY 0x054c
  34. #define USB_VENDOR_VALVE 0x28de
  35. #define USB_PRODUCT_AMAZON_LUNA_CONTROLLER 0x0419
  36. #define USB_PRODUCT_GOOGLE_STADIA_CONTROLLER 0x9400
  37. #define USB_PRODUCT_EVORETRO_GAMECUBE_ADAPTER 0x1846
  38. #define USB_PRODUCT_NINTENDO_GAMECUBE_ADAPTER 0x0337
  39. #define USB_PRODUCT_NINTENDO_SWITCH_PRO 0x2009
  40. #define USB_PRODUCT_NINTENDO_SWITCH_JOY_CON_LEFT 0x2006
  41. #define USB_PRODUCT_NINTENDO_SWITCH_JOY_CON_RIGHT 0x2007
  42. #define USB_PRODUCT_NINTENDO_SWITCH_JOY_CON_GRIP 0x200e
  43. #define USB_PRODUCT_RAZER_PANTHERA 0x0401
  44. #define USB_PRODUCT_RAZER_PANTHERA_EVO 0x1008
  45. #define USB_PRODUCT_RAZER_ATROX 0x0a00
  46. #define USB_PRODUCT_SONY_DS4 0x05c4
  47. #define USB_PRODUCT_SONY_DS4_DONGLE 0x0ba0
  48. #define USB_PRODUCT_SONY_DS4_SLIM 0x09cc
  49. #define USB_PRODUCT_SONY_DS5 0x0ce6
  50. #define USB_PRODUCT_VICTRIX_FS_PRO_V2 0x0207
  51. #define USB_PRODUCT_XBOX360_XUSB_CONTROLLER 0x02a1 /* XUSB driver software PID */
  52. #define USB_PRODUCT_XBOX360_WIRED_CONTROLLER 0x028e
  53. #define USB_PRODUCT_XBOX360_WIRELESS_RECEIVER 0x0719
  54. #define USB_PRODUCT_XBOX_ONE_ADAPTIVE 0x0b0a
  55. #define USB_PRODUCT_XBOX_ONE_ADAPTIVE_BLUETOOTH 0x0b0c
  56. #define USB_PRODUCT_XBOX_ONE_ADAPTIVE_BLE 0x0b21
  57. #define USB_PRODUCT_XBOX_ONE_ELITE_SERIES_1 0x02e3
  58. #define USB_PRODUCT_XBOX_ONE_ELITE_SERIES_2 0x0b00
  59. #define USB_PRODUCT_XBOX_ONE_ELITE_SERIES_2_BLUETOOTH 0x0b05
  60. #define USB_PRODUCT_XBOX_ONE_ELITE_SERIES_2_BLE 0x0b22
  61. #define USB_PRODUCT_XBOX_ONE_S 0x02ea
  62. #define USB_PRODUCT_XBOX_ONE_S_REV1_BLUETOOTH 0x02e0
  63. #define USB_PRODUCT_XBOX_ONE_S_REV2_BLUETOOTH 0x02fd
  64. #define USB_PRODUCT_XBOX_ONE_S_REV2_BLE 0x0b20
  65. #define USB_PRODUCT_XBOX_SERIES_X 0x0b12
  66. #define USB_PRODUCT_XBOX_SERIES_X_BLE 0x0b13
  67. #define USB_PRODUCT_XBOX_SERIES_X_VICTRIX_GAMBIT 0x02d6
  68. #define USB_PRODUCT_XBOX_SERIES_X_PDP_BLUE 0x02d9
  69. #define USB_PRODUCT_XBOX_SERIES_X_PDP_AFTERGLOW 0x02da
  70. #define USB_PRODUCT_XBOX_SERIES_X_POWERA_FUSION_PRO2 0x4001
  71. #define USB_PRODUCT_XBOX_SERIES_X_POWERA_SPECTRA 0x4002
  72. #define USB_PRODUCT_XBOX_ONE_XBOXGIP_CONTROLLER 0x02ff /* XBOXGIP driver software PID */
  73. #define USB_PRODUCT_XBOX_ONE_XINPUT_CONTROLLER 0x02fe /* Made up product ID for XInput */
  74. #define USB_PRODUCT_STEAM_VIRTUAL_GAMEPAD 0x11ff
  75. /* USB usage pages */
  76. #define USB_USAGEPAGE_GENERIC_DESKTOP 0x0001
  77. #define USB_USAGEPAGE_BUTTON 0x0009
  78. /* USB usages for USAGE_PAGE_GENERIC_DESKTOP */
  79. #define USB_USAGE_GENERIC_POINTER 0x0001
  80. #define USB_USAGE_GENERIC_MOUSE 0x0002
  81. #define USB_USAGE_GENERIC_JOYSTICK 0x0004
  82. #define USB_USAGE_GENERIC_GAMEPAD 0x0005
  83. #define USB_USAGE_GENERIC_KEYBOARD 0x0006
  84. #define USB_USAGE_GENERIC_KEYPAD 0x0007
  85. #define USB_USAGE_GENERIC_MULTIAXISCONTROLLER 0x0008
  86. #define USB_USAGE_GENERIC_X 0x0030
  87. #define USB_USAGE_GENERIC_Y 0x0031
  88. #define USB_USAGE_GENERIC_Z 0x0032
  89. #define USB_USAGE_GENERIC_RX 0x0033
  90. #define USB_USAGE_GENERIC_RY 0x0034
  91. #define USB_USAGE_GENERIC_RZ 0x0035
  92. #define USB_USAGE_GENERIC_SLIDER 0x0036
  93. #define USB_USAGE_GENERIC_DIAL 0x0037
  94. #define USB_USAGE_GENERIC_WHEEL 0x0038
  95. #define USB_USAGE_GENERIC_HAT 0x0039
  96. /* Bluetooth SIG assigned Company Identifiers
  97. https://www.bluetooth.com/specifications/assigned-numbers/company-identifiers/ */
  98. #define BLUETOOTH_VENDOR_AMAZON 0x0171
  99. #define BLUETOOTH_PRODUCT_LUNA_CONTROLLER 0x0419
  100. #endif /* usb_ids_h_ */
  101. /* vi: set ts=4 sw=4 expandtab: */