Skip to content

Commit 9a96960

Browse files
endriftslouken
authored andcommitted
joystick: Sort out GIP vendor messages into the supported interfaces
1 parent 72dd797 commit 9a96960

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

src/joystick/hidapi/SDL_hidapi_gip.c

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,25 @@
6464
#define GIP_CMD_DEBUG 0x1f
6565
#define GIP_AUDIO_DATA 0x60
6666

67-
/* Vendor messages */
67+
/* Navigation vendor messages */
6868
#define GIP_CMD_DIRECT_MOTOR 0x09
69-
#define GIP_CMD_INITIAL_REPORTS_REQUEST 0x0a
70-
#define GIP_CMD_SET_APPLICATION_MEMORY 0x0b
7169
#define GIP_LL_INPUT_REPORT 0x20
70+
#define GIP_LL_OVERFLOW_INPUT_REPORT 0x26
71+
72+
/* Wheel and ArcadeStick vendor messages */
73+
#define GIP_CMD_INITIAL_REPORTS_REQUEST 0x0a
7274
#define GIP_LL_STATIC_CONFIGURATION 0x21
7375
#define GIP_LL_BUTTON_INFO_REPORT 0x22
74-
#define GIP_LL_OVERFLOW_INPUT_REPORT 0x26
76+
77+
/* Wheel vendor messages */
78+
#define GIP_CMD_SET_APPLICATION_MEMORY 0x0b
79+
#define GIP_CMD_SET_EQUATIONS_STATES 0x0c
80+
#define GIP_CMD_SET_EQUATION 0x0d
81+
82+
/* FlightStick vendor messages */
83+
#define GIP_CMD_DEVICE_CAPABILITIES 0x00
84+
#define GIP_CMD_LED_CAPABILITIES 0x01
85+
#define GIP_CMD_SET_LED_STATE 0x02
7586

7687
/* Undocumented Elite 2 vendor messages */
7788
#define GIP_CMD_RAW_REPORT 0x0c

0 commit comments

Comments
 (0)