Making a keypress toggle something... Delay/disable that key for a few seconds after pressed?
in
Programming Questions
•
2 years ago
Hey all,
Looking to make a Keypress Toggle something....
How do I turn that key off for a few seconds, (So holding it down doesn't flip the toggle x100000)
while still allowing the other keys to be used?
case'q':case'Q': port.write("q") ;break; //delay shouldn't work right? that would freeze the whole program
Thanks!
-J
Looking to make a Keypress Toggle something....
How do I turn that key off for a few seconds, (So holding it down doesn't flip the toggle x100000)
while still allowing the other keys to be used?
case'q':case'Q': port.write("q") ;break; //delay shouldn't work right? that would freeze the whole program
Thanks!
-J
1