Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 what to type for Input.KeyDown to get spacebar? (eg. Key_Up_Arrow is for up arrow key. What is it for spacebar?)
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
tianxiao




PostPosted: 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?)
Sponsor
Sponsor
Sponsor
sponsor
DemonWasp




PostPosted: 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?
tianxiao




PostPosted: 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
Laplace's Demon




PostPosted: 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.
Insectoid




PostPosted: 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).
drij




PostPosted: 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 (" ")
corriep




PostPosted: 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 (' ')
copthesaint




PostPosted: 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?
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 8 Posts ]
Jump to:   


Style:  
Search: