Computer Science Canada what to type for Input.KeyDown to get spacebar? (eg. Key_Up_Arrow is for up arrow key. What is it for spacebar?) |
Author: | tianxiao [ 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?) |
Author: | DemonWasp [ 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? |
Author: | tianxiao [ 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 |
Author: | Laplace's Demon [ 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. |
Author: | Insectoid [ 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). |
Author: | drij [ 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?) | ||
|
Author: | corriep [ 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
|
Author: | copthesaint [ 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? |