How do you use letters (on a keyboard) to control an action?
Author |
Message |
vdemons
|
Posted: 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? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
HRI
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
vdemons
|
Posted: 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 thank you very much. |
|
|
|
|
![](images/spacer.gif) |
|
|