SDL_hidapi_sinput.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*
  2. Simple DirectMedia Layer
  3. Copyright (C) 2025 Mitchell Cairns <mitch.cairns@handheldlegend.com>
  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. typedef enum
  19. {
  20. SINPUT_ANALOGSTYLE_NONE,
  21. SINPUT_ANALOGSTYLE_LEFTONLY,
  22. SINPUT_ANALOGSTYLE_RIGHTONLY,
  23. SINPUT_ANALOGSTYLE_LEFTRIGHT,
  24. SINPUT_ANALOGSTYLE_MAX,
  25. } SInput_AnalogStyleType;
  26. typedef enum
  27. {
  28. SINPUT_BUMPERSTYLE_NONE,
  29. SINPUT_BUMPERSTYLE_ONE,
  30. SINPUT_BUMPERSTYLE_TWO,
  31. SINPUT_BUMPERSTYLE_MAX,
  32. } SInput_BumperStyleType;
  33. typedef enum
  34. {
  35. SINPUT_TRIGGERSTYLE_NONE,
  36. SINPUT_TRIGGERSTYLE_ANALOG,
  37. SINPUT_TRIGGERSTYLE_DIGITAL,
  38. SINPUT_TRIGGERSTYLE_DUALSTAGE,
  39. SINPUT_TRIGGERSTYLE_MAX,
  40. } SInput_TriggerStyleType;
  41. typedef enum
  42. {
  43. SINPUT_PADDLESTYLE_NONE,
  44. SINPUT_PADDLESTYLE_TWO,
  45. SINPUT_PADDLESTYLE_FOUR,
  46. SINPUT_PADDLESTYLE_MAX,
  47. } SInput_PaddleStyleType;
  48. typedef enum
  49. {
  50. SINPUT_METASTYLE_NONE,
  51. SINPUT_METASTYLE_BACK,
  52. SINPUT_METASTYLE_BACKGUIDE,
  53. SINPUT_METASTYLE_BACKGUIDESHARE,
  54. SINPUT_METASTYLE_MAX,
  55. } SInput_MetaStyleType;
  56. typedef enum
  57. {
  58. SINPUT_TOUCHSTYLE_NONE,
  59. SINPUT_TOUCHSTYLE_SINGLE,
  60. SINPUT_TOUCHSTYLE_DOUBLE,
  61. SINPUT_TOUCHSTYLE_MAX,
  62. } SInput_TouchStyleType;
  63. typedef enum
  64. {
  65. SINPUT_MISCSTYLE_NONE,
  66. SINPUT_MISCSTYLE_1,
  67. SINPUT_MISCSTYLE_2,
  68. SINPUT_MISCSTYLE_3,
  69. SINPUT_MISCSTYLE_4,
  70. SINPUT_MISCSTYLE_MAX,
  71. } SInput_MiscStyleType;
  72. typedef struct
  73. {
  74. Uint16 analog_style;
  75. Uint16 bumper_style;
  76. Uint16 trigger_style;
  77. Uint16 paddle_style;
  78. Uint16 meta_style;
  79. Uint16 touch_style;
  80. Uint16 misc_style;
  81. } SDL_SInputStyles_t;