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

Username:   Password: 
 RegisterRegister   
 Key Arrow help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Chrisd534




PostPosted: Mon Nov 20, 2006 1:34 pm   Post subject: Key Arrow help

yo guys can any1 help me make aroow commands like KEY_UP_ARROW.
i need it so that when KEY_UP_ARROW is on then parallelput (255) and also when KEY_DOWN_ARROW is on then parallelput (0) and i cant figure out the comand for when both up and down arrows are clicked. when they are clicked i need it to be

loop
parallelput (255)
delay(1)
parallelput(0)
delay(1)
end loop


ty to any1 who can help me
Sponsor
Sponsor
Sponsor
sponsor
ZeroPaladn




PostPosted: Mon Nov 20, 2006 1:53 pm   Post subject: (No subject)

Think about you question for a minute, in fact, re-read it...
Quote:
...i need it so that when KEY_UP_ARROW is on then parallelput (255) and also when KEY_DOWN_ARROW is on then parallelput (0)...

All your looking for is when both KEY_UP_ARROW and KEY_DOWN_ARROW are both being presed at the same time. If you have any experience in Turing, then you should know about basic if statements. If not, then look at ths tutroial about if statements.
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  [ 2 Posts ]
Jump to:   


Style:  
Search: