This repository was archived by the owner on May 18, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ typedef struct TU_ATTR_PACKED
157
157
int8_t y ; /**< Current delta y movement of the gamepad joystick 1. */
158
158
int8_t z ; /**< Current delta z movement of the gamepad joystick 2. */
159
159
int8_t r_z ; /**< Current delta r_z movement of the gamepad joystick 2. */
160
- uint8_t hat ; /**< buttons mask for currently pressed buttons in the gamepad hat */
160
+ uint16_t hat ; /**< buttons mask for currently pressed buttons in the gamepad hat */
161
161
}hid_gamepad_report_t ;
162
162
163
163
/// Standard Gamepad Buttons Bitmap (from Linux input event codes)
Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ TU_ATTR_WEAK bool tud_hid_set_idle_cb(uint8_t idle_rate);
276
276
HID_REPORT_COUNT ( 4 ) ,\
277
277
HID_REPORT_SIZE ( 8 ) ,\
278
278
HID_INPUT ( HID_DATA | HID_VARIABLE | HID_ABSOLUTE ) ,\
279
- /* 8 bit Hat Button Map */ \
279
+ /* 16 bit Hat Button Map */ \
280
280
HID_USAGE_PAGE ( HID_USAGE_PAGE_DESKTOP ) ,\
281
281
HID_USAGE ( HID_USAGE_DESKTOP_HAT_SWITCH ) ,\
282
282
HID_LOGICAL_MIN ( 1 ) ,\
You can’t perform that action at this time.
0 commit comments