
-----------------------------------
tianxiao
Tue Jan 13, 2009 9:39 am

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?)

-----------------------------------
DemonWasp
Tue Jan 13, 2009 10:41 am

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?

-----------------------------------
tianxiao
Tue Jan 13, 2009 11:07 am

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

-----------------------------------
Laplace's Demon
Tue Jan 13, 2009 11:31 am

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.

-----------------------------------
Insectoid
Tue Jan 13, 2009 12:10 pm

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).

-----------------------------------
drij
Tue Jan 13, 2009 1:11 pm

RE:what to type for Input.KeyDown to get spacebar? (eg. Key_Up_Arrow is for up arrow key. What is it for spacebar?)
-----------------------------------
myArrayCharOfBoolean (" ")

-----------------------------------
corriep
Tue Jan 13, 2009 3:03 pm

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


myArrayCharOfBoolean (' ')


-----------------------------------
copthesaint
Tue Jan 13, 2009 3:07 pm

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?
