Add some additionally debugging, fix the 'ole broken switch statement.

This commit is contained in:
2021-11-09 06:11:36 +00:00
parent a69c2d3364
commit e09c21edf1
4 changed files with 46 additions and 17 deletions

View File

@ -46,8 +46,11 @@ class Joystick {
// Add an analog axis to the joystick. THIS METHOD IS NOT CURRENTLY TESTED OR SUPPORTED. It might work, but probably not.
void AddAxis(uint8_t pin);
// These members should not be used by end users; todo: remember how friend classes work
void PressButton(uint8_t button);
void ReleaseButton(uint8_t button);
bool _debug;
private:
void SetAxis(uint8_t axis, int16_t value);
@ -66,7 +69,6 @@ class Joystick {
uint8_t _num_axes;
JoyReport _joyReport;
bool _debug;
};
#endif