Initial implementation of the new API. Update() isn't functional yet.
This commit is contained in:
@ -44,9 +44,15 @@ class Joystick {
|
||||
|
||||
private:
|
||||
struct {
|
||||
|
||||
uint8_t pin;
|
||||
ButtonType type;
|
||||
uint8_t last_state;
|
||||
} _buttons[JOYSTICK_NUM_BUTTONS];
|
||||
uint8_t _num_buttons;
|
||||
|
||||
uint8_t _axes[JOYSTICK_NUM_AXES];
|
||||
uint8_t _num_axes;
|
||||
|
||||
JoyReport _joyReport;
|
||||
bool _debug;
|
||||
};
|
||||
|
Reference in New Issue
Block a user