Joystick: add support for 8-way hat switch (#24515)
This commit is contained in:
parent
69093f6de9
commit
a3cfb1dab7
7 changed files with 124 additions and 2 deletions
|
@ -246,6 +246,11 @@ typedef struct {
|
|||
joystick_axis_t axes[JOYSTICK_AXIS_COUNT];
|
||||
#endif
|
||||
|
||||
#ifdef JOYSTICK_HAS_HAT
|
||||
int8_t hat : 4;
|
||||
uint8_t reserved : 4;
|
||||
#endif
|
||||
|
||||
#if JOYSTICK_BUTTON_COUNT > 0
|
||||
uint8_t buttons[(JOYSTICK_BUTTON_COUNT - 1) / 8 + 1];
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue