When I press the numbers it acts like pressing the arrows. TI-84+
I am quite confused.
getKey(number) checks if a key is pressed.
so getkey([1,2,3 or 4, pick one]) will be true if one of the arrow keys is pressed.
from the documentation.pdf:

Code:

:Repeat getKey(15)
:If getKey(2) and (Z≠0)
:Z-2→Z
:End
:If getKey(3) and (Z≠88)
:Z+2→Z
:End

It's used in the pong example. I'm not sure how your program is crossing that up with number keys, could you share the related code?
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement