Revert to non-STL-using code, since that's not available when compiling for Arduino...
This commit is contained in:
@ -65,8 +65,9 @@ class Joystick {
|
||||
void _UpdateButton(uint8_t index);
|
||||
void _UpdateAxis(uint8_t index);
|
||||
|
||||
list<Button> _buttons;
|
||||
uint8_t _last_button_index;
|
||||
Button _buttons[JOYSTICK_NUM_BUTTONS];
|
||||
uint8_t _num_buttons;
|
||||
uint8_t _last_button_index; // a single physical button can have multiple logical buttons. _last_button_index tracks the number of logical / virtual buttons we have defined.
|
||||
bool _have_pulsed_button;
|
||||
|
||||
uint8_t _axes[JOYSTICK_NUM_AXES];
|
||||
|
Reference in New Issue
Block a user