diff options
| author | Ryan | 2022-11-26 17:14:45 +0100 |
|---|---|---|
| committer | GitHub | 2022-11-26 17:14:45 +0100 |
| commit | 1e95f7be8f214c544bf99f415916a4a5f07a1e9b (patch) | |
| tree | 99e7148ab4c464f40da8f0ee01e079843a26cf14 /tmk_core/protocol/report.h | |
| parent | a5a20cc792540c0de61f064bd8dafcdc5815d4cc (diff) | |
Joystick feature improvements (#19052)
Diffstat (limited to 'tmk_core/protocol/report.h')
| -rw-r--r-- | tmk_core/protocol/report.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tmk_core/protocol/report.h b/tmk_core/protocol/report.h index 543c44e33c..e4526e4ee6 100644 --- a/tmk_core/protocol/report.h +++ b/tmk_core/protocol/report.h @@ -235,11 +235,14 @@ typedef struct { } __attribute__((packed)) report_digitizer_t; typedef struct { -#if JOYSTICK_AXES_COUNT > 0 -# if JOYSTICK_AXES_RESOLUTION > 8 - int16_t axes[JOYSTICK_AXES_COUNT]; +#ifdef JOYSTICK_SHARED_EP + uint8_t report_id; +#endif +#if JOYSTICK_AXIS_COUNT > 0 +# if JOYSTICK_AXIS_RESOLUTION > 8 + int16_t axes[JOYSTICK_AXIS_COUNT]; # else - int8_t axes[JOYSTICK_AXES_COUNT]; + int8_t axes[JOYSTICK_AXIS_COUNT]; # endif #endif |