Fix code to compile, now that I am in an environment where I can compile. This commit not tested.
This commit is contained in:
parent
f2d7f48d43
commit
9af6a589f8
2 changed files with 19 additions and 2 deletions
|
@ -25,6 +25,9 @@ typedef struct JoyReport {
|
|||
uint8_t button[JOYSTICK_NUM_BYTES];
|
||||
} ;
|
||||
|
||||
bool operator ==(JoyReport a, JoyReport b);
|
||||
bool operator !=(JoyReport a, JoyReport b);
|
||||
|
||||
class Joystick {
|
||||
public:
|
||||
Joystick(bool debug=false);
|
||||
|
@ -49,6 +52,7 @@ class Joystick {
|
|||
uint8_t last_state;
|
||||
} _buttons[JOYSTICK_NUM_BUTTONS];
|
||||
uint8_t _num_buttons;
|
||||
bool _have_pulsed_button;
|
||||
|
||||
uint8_t _axes[JOYSTICK_NUM_AXES];
|
||||
uint8_t _num_axes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue