Joystick feature improvements (#19052)
This commit is contained in:
@ -164,24 +164,27 @@ void host_joystick_send(joystick_t *joystick) {
|
||||
if (!driver) return;
|
||||
|
||||
report_joystick_t report = {
|
||||
# if JOYSTICK_AXES_COUNT > 0
|
||||
# ifdef JOYSTICK_SHARED_EP
|
||||
.report_id = REPORT_ID_JOYSTICK,
|
||||
# endif
|
||||
# if JOYSTICK_AXIS_COUNT > 0
|
||||
.axes =
|
||||
{
|
||||
joystick->axes[0],
|
||||
|
||||
# if JOYSTICK_AXES_COUNT >= 2
|
||||
# if JOYSTICK_AXIS_COUNT >= 2
|
||||
joystick->axes[1],
|
||||
# endif
|
||||
# if JOYSTICK_AXES_COUNT >= 3
|
||||
# if JOYSTICK_AXIS_COUNT >= 3
|
||||
joystick->axes[2],
|
||||
# endif
|
||||
# if JOYSTICK_AXES_COUNT >= 4
|
||||
# if JOYSTICK_AXIS_COUNT >= 4
|
||||
joystick->axes[3],
|
||||
# endif
|
||||
# if JOYSTICK_AXES_COUNT >= 5
|
||||
# if JOYSTICK_AXIS_COUNT >= 5
|
||||
joystick->axes[4],
|
||||
# endif
|
||||
# if JOYSTICK_AXES_COUNT >= 6
|
||||
# if JOYSTICK_AXIS_COUNT >= 6
|
||||
joystick->axes[5],
|
||||
# endif
|
||||
},
|
||||
|
Reference in New Issue
Block a user