Author |
Message |
tianxiao
|
Posted: Tue Jan 13, 2009 9:39 am Post subject: what to type for Input.KeyDown to get spacebar? (eg. Key_Up_Arrow is for up arrow key. What is it for spacebar?) |
|
|
what to type for Input.KeyDown to get spacebar? (eg. Key_Up_Arrow is for up arrow key. What is it for spacebar?) |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
DemonWasp
|
Posted: Tue Jan 13, 2009 10:41 am Post subject: RE:what to type for Input.KeyDown to get spacebar? (eg. Key_Up_Arrow is for up arrow key. What is it for spacebar?) |
|
|
I'm fairly certain there's a nice table of this in the Turing help. Have you looked there yet? |
|
|
|
|
![](images/spacer.gif) |
tianxiao
|
Posted: Tue Jan 13, 2009 11:07 am Post subject: RE:what to type for Input.KeyDown to get spacebar? (eg. Key_Up_Arrow is for up arrow key. What is it for spacebar?) |
|
|
yes, but it told me to put ORD_SPACE but that did not work |
|
|
|
|
![](images/spacer.gif) |
Laplace's Demon
|
Posted: Tue Jan 13, 2009 11:31 am Post subject: Re: what to type for Input.KeyDown to get spacebar? (eg. Key_Up_Arrow is for up arrow key. What is it for spacebar?) |
|
|
I belive your problem is that the ORD_SPACE can only be used with the "ord" command.
look up ord in the turing reference. |
|
|
|
|
![](images/spacer.gif) |
Insectoid
![](http://compsci.ca/v3/uploads/user_avatars/13760332514cbd0ce972eaa.jpg)
|
Posted: Tue Jan 13, 2009 12:10 pm Post subject: RE:what to type for Input.KeyDown to get spacebar? (eg. Key_Up_Arrow is for up arrow key. What is it for spacebar?) |
|
|
You need to use the key ID number. I think spacebar is 32, so instead of (KEY_SPACE) you do (32). |
|
|
|
|
![](images/spacer.gif) |
drij
|
Posted: Tue Jan 13, 2009 1:11 pm Post subject: RE:what to type for Input.KeyDown to get spacebar? (eg. Key_Up_Arrow is for up arrow key. What is it for spacebar?) |
|
|
Turing: | myArrayCharOfBoolean (" ") |
|
|
|
|
|
![](images/spacer.gif) |
corriep
|
Posted: Tue Jan 13, 2009 3:03 pm Post subject: Re: what to type for Input.KeyDown to get spacebar? (eg. Key_Up_Arrow is for up arrow key. What is it for spacebar?) |
|
|
it should be single quotes
Turing: |
myArrayCharOfBoolean (' ')
|
|
|
|
|
|
![](images/spacer.gif) |
copthesaint
![](http://compsci.ca/v3/uploads/user_avatars/15853548854c9c056fda48d.jpg)
|
Posted: Tue Jan 13, 2009 3:07 pm Post subject: RE:what to type for Input.KeyDown to get spacebar? (eg. Key_Up_Arrow is for up arrow key. What is it for spacebar?) |
|
|
KEY_SPACE = spacebar
KEY_ESC = Escape
KEY_UP_ARROW = up arrow (same for other directions)
KEY_SHIFT = Shift key
KEY_ENTER = enter
('#") = any number that you use
('a') = any letter that you use (lower case)
Need any others? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
|