Add the ability to use a custom delay time for button presses.
This commit is contained in:
parent
70d7bdd3b2
commit
aef35f96a0
5 changed files with 23 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue