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

Username:   Password: 
 RegisterRegister   
 how to recieve more than one key at the same time?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
greenapplesodaex




PostPosted: Wed Jun 16, 2004 12:27 pm   Post subject: how to recieve more than one key at the same time?

http://www.compsci.ca/v2/viewtopic.php?t=5476
the pong game can recieve 2 keys at the same time! how does he do that?
Sponsor
Sponsor
Sponsor
sponsor
omni




PostPosted: Wed Jun 16, 2004 2:27 pm   Post subject: (No subject)

use

var key :array char of boolean
loop
Input.KeyDown(key)
if key(whateverkey) then
do something


I think theres a tutorial on Input.KeyDown in the tutorial section
SuperGenius




PostPosted: Wed Jun 16, 2004 3:25 pm   Post subject: (No subject)

Input.Keydown doesn't wait for input like getch. If you want it to then look up Input.Pause.
Tony




PostPosted: Wed Jun 16, 2004 3:55 pm   Post subject: (No subject)

considering we have nearly 50K posts at this point, I find it funny when the needed tutorial has a post number of 273 Laughing
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
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  [ 4 Posts ]
Jump to:   


Style:  
Search: