Computer Science Canada

Options for Input.KeyDown?

Author:  AzureFire [ 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?

Author:  Tony [ Sun May 07, 2006 10:28 pm ]
Post 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)

Author:  AzureFire [ Mon May 08, 2006 7:06 am ]
Post 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.

Author:  codemage [ Mon May 08, 2006 8:11 am ]
Post subject: 

The list is under "keyboard" in the Turing help reference.


: