HP Forums
Repeated Keypress with getKey? [PPL] - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Repeated Keypress with getKey? [PPL] (/thread-12470.html)



Repeated Keypress with getKey? [PPL] - TheLastMillennial - 02-20-2019 11:13 PM

I was trying to make a simple game that requires you to hold down a key to make a sprite move across the screen. However, when I hold down the buttons I assigned to move the character, they only do one key press. Is there a way to get repeated key presses by holding down a button? I'm stunned I couldn't find a topic on this already and the command list I'm referencing doesn't even mention repeated key presses!


RE: Repeated Keypress with getKey? [PPL] - Carlos295pz - 02-21-2019 12:21 AM

ISKEYDOWN


RE: Repeated Keypress with getKey? [PPL] - TheLastMillennial - 02-21-2019 12:36 AM

Thanks for your reply Carlos, that worked like a charm!