summaryrefslogtreecommitdiff
path: root/tmk_core/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/protocol')
-rw-r--r--tmk_core/protocol/report.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/tmk_core/protocol/report.h b/tmk_core/protocol/report.h
index ec985e69ad..3028cf9426 100644
--- a/tmk_core/protocol/report.h
+++ b/tmk_core/protocol/report.h
@@ -218,16 +218,18 @@ typedef struct {
218 uint16_t y; 218 uint16_t y;
219} PACKED report_digitizer_t; 219} PACKED report_digitizer_t;
220 220
221#if JOYSTICK_AXIS_RESOLUTION > 8
222typedef int16_t joystick_axis_t;
223#else
224typedef int8_t joystick_axis_t;
225#endif
226
221typedef struct { 227typedef struct {
222#ifdef JOYSTICK_SHARED_EP 228#ifdef JOYSTICK_SHARED_EP
223 uint8_t report_id; 229 uint8_t report_id;
224#endif 230#endif
225#if JOYSTICK_AXIS_COUNT > 0 231#if JOYSTICK_AXIS_COUNT > 0
226# if JOYSTICK_AXIS_RESOLUTION > 8 232 joystick_axis_t axes[JOYSTICK_AXIS_COUNT];
227 int16_t axes[JOYSTICK_AXIS_COUNT];
228# else
229 int8_t axes[JOYSTICK_AXIS_COUNT];
230# endif
231#endif 233#endif
232 234
233#if JOYSTICK_BUTTON_COUNT > 0 235#if JOYSTICK_BUTTON_COUNT > 0