Page 1 of 1

Single Keypress

Posted: Sun Dec 22, 2024 9:54 pm
by oceanarts
Is there a simple way to accept only one keypress at a time? So that the user would have to release a key and then press it again for it to register.

Re: Single Keypress

Posted: Mon Dec 23, 2024 10:54 am
by Flinx
Maybe you can do something with IsKeyDown()?
Or if you use OnKeyDown and OnKeyUp events then this may help.

Re: Single Keypress

Posted: Mon Dec 23, 2024 12:34 pm
by jPV
I would use the OnKeyUp event. Then you only get notifications when user releases the key and you can avoid the repeating key issue.