Initial implementation of the new API. Update() isn't functional yet.
This commit is contained in:
parent
cd0fe5829e
commit
c2771502e3
2 changed files with 37 additions and 10 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue