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

Username:   Password: 
 RegisterRegister   
 how do i use different keys for things?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Genisis




PostPosted: Tue Nov 01, 2005 10:23 am   Post subject: how do i use different keys for things?

for my pong program

i want to us W and S keys how would i put that in?
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Tue Nov 01, 2005 10:28 am   Post subject: (No subject)

Turing:

var chars : array char of boolean
loop
    Input.KeyDown (chars)
    if chars ('w') then
        put "The W key is pressed"
    end if
    if chars ('s') then
        put "The S key is pressed"
    end if
end loop
[Gandalf]




PostPosted: Tue Nov 01, 2005 4:51 pm   Post subject: (No subject)

Why not look at our tutorials instead of asking every question that comes to mind.

http://www.compsci.ca/v2/viewtopic.php?t=8808
Genisis




PostPosted: Tue Nov 01, 2005 5:26 pm   Post subject: (No subject)

because it takes to long
MysticVegeta




PostPosted: Tue Nov 01, 2005 7:04 pm   Post subject: (No subject)

*hint* search button
Cervantes




PostPosted: Tue Nov 01, 2005 9:00 pm   Post subject: (No subject)

Genisis wrote:
because it takes to long

We try our best to help students, but we can only do so if they help themselves. Besides, Tony's short reply is far less than you would get if you read Tony's tutorial on the same topic. Wink
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  [ 6 Posts ]
Jump to:   


Style:  
Search: