Add the ability to use a custom delay time for button presses.

This commit is contained in:
Anna Rose Wiggins 2021-12-22 22:07:57 +00:00
parent 70d7bdd3b2
commit aef35f96a0
5 changed files with 23 additions and 17 deletions

View file

@ -29,7 +29,7 @@ bool operator !=(JoyReport a, JoyReport b);
class Joystick {
public:
Joystick(bool debug=false);
Joystick(uint8_t release_delay = 250, bool debug=false);
void Init();
void Update();
@ -78,6 +78,7 @@ class Joystick {
JoyReport _joyReport;
bool _debug;
uint8_t release_delay;
};
#endif