Computer Science Canada

How do you use letters (on a keyboard) to control an action?

Author:  vdemons [ Sat May 21, 2011 9:24 pm ]
Post subject:  How do you use letters (on a keyboard) to control an action?

I am very familiar with the "Input.KeyDown (chars)", and the chars (KEY_UP_ARROW) and all that, but I want to also use the letters to do something as well. In the Turing guide it said to use ord, and I did but it gives me an error what do I do?

Author:  HRI [ Sat May 21, 2011 9:34 pm ]
Post subject:  RE:How do you use letters (on a keyboard) to control an action?

if chars ('a')
then
%action
end if

Author:  vdemons [ Sat May 21, 2011 9:42 pm ]
Post subject:  RE:How do you use letters (on a keyboard) to control an action?

Oh well that was painfully obvious my bad Razz thank you very much.


: