Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Options for Input.KeyDown?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
AzureFire




PostPosted: Sun May 07, 2006 10:02 pm   Post subject: Options for Input.KeyDown?

Hey, I'm messing around with key bindings and I wanted to know what all of the available options were for Input.KeyDown()

I know that you can do something like this;
code:
key('q')
and
code:
key(KEY_UP_ARROW)


But what about buttons like Escape and Enter, can they be detected?
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sun May 07, 2006 10:28 pm   Post subject: (No subject)

yes, every key can be detected.

You can look up all the constants in Turing's Help Manual, under Input.KeyDown (F10)

Additally I think you could generate an inverse of key's ASCII value to use

chr(number)
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
AzureFire




PostPosted: Mon May 08, 2006 7:06 am   Post subject: (No subject)

Ah, ok. When I looked in the help file all I saw was what I posted above, I missed the part about the appendix. It was a little burried, but I found it Smile.

Thanks Tony.
codemage




PostPosted: Mon May 08, 2006 8:11 am   Post subject: (No subject)

The list is under "keyboard" in the Turing help reference.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: