Single Keypress

Find quick help here to get you started with Hollywood
Post Reply
oceanarts
Posts: 65
Joined: Mon May 27, 2024 10:42 pm

Single Keypress

Post 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.
Flinx
Posts: 261
Joined: Sun Feb 14, 2021 9:54 am
Location: Germany

Re: Single Keypress

Post by Flinx »

Maybe you can do something with IsKeyDown()?
Or if you use OnKeyDown and OnKeyUp events then this may help.
User avatar
jPV
Posts: 675
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: Single Keypress

Post 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.
Post Reply