Add an equivalent example using the new Joystick API. Also add pin initializing code to Joystick::AddButton()
This commit is contained in:
@ -31,7 +31,7 @@ class Joystick {
|
||||
void Init();
|
||||
void Update();
|
||||
|
||||
void AddButton(uint8_t pin, ButtonType type);
|
||||
void AddButton(uint8_t pin, ButtonType type, bool pullup=false);
|
||||
void AddAxis(uint8_t pin);
|
||||
|
||||
// These functions are deprecated and may become private in a future
|
||||
|
Reference in New Issue
Block a user