Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: DJ Omnimaga on May 11, 2010, 12:30:09 am

Title: Key delay help
Post by: DJ Omnimaga on May 11, 2010, 12:30:09 am
I am certain I saw this in another topic, but there are so many posts I no longer can find it and search engine won't help either:

For example, on the highscore screen, when I press 2nd to exit it lands back on the title screen. To start the game, I need to press 2nd too. However, if I hold down 2nd for slightly too long, I don't even have time to see the title screen, even if I use Repeat Getkey=54 instead of Repeat Getkey(54). How would I fix that?
Title: Re: Key delay help
Post by: calc84maniac on May 11, 2010, 12:33:29 am
Put a dummy getKey before the loop, to clear the last key pressed. Hopefully that will work :)
Title: Re: Key delay help
Post by: DJ Omnimaga on May 11, 2010, 12:44:28 am
ok thanks that works. Only with getkey, not getkey(), though.
Title: Re: Key delay help
Post by: Quigibo on May 11, 2010, 12:48:17 am
You can do this:

While getkey(0):End

That works even when you're using direct keys.  It will wait until you've let go of all the keys.
Title: Re: Key delay help
Post by: DJ Omnimaga on May 11, 2010, 01:56:07 am
Aah ok thanks ^^
Title: Re: Key delay help
Post by: ztrumpet on May 11, 2010, 07:50:19 am
You can do this:

While getkey(0):End

That works even when you're using direct keys.  It will wait until you've let go of all the keys.
That's an awesome idea!  I'll have to remember this!  Great point. :D
Title: Re: Key delay help
Post by: DJ Omnimaga on May 11, 2010, 11:55:31 am
If you have animations or the like, make sure they run when running this, though, else all animations will stop until you release all the keys. It's better to use this in menus