Joystick feature improvements (#19052)
This commit is contained in:
parent
a5a20cc792
commit
1e95f7be8f
27 changed files with 475 additions and 215 deletions
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue