Initial implementation of the new API. Update() isn't functional yet.

This commit is contained in:
Anna Rose Wiggins 2015-11-06 11:36:33 -05:00
parent cd0fe5829e
commit c2771502e3
2 changed files with 37 additions and 10 deletions

View file

@ -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;
};