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

Username:   Password: 
 RegisterRegister   
 How to check for simultaneous keypresses?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
sarm2005




PostPosted: Sun Mar 09, 2008 6:27 pm   Post subject: How to check for simultaneous keypresses?

Such as when someone presses the up and right arrows at the same time.
Sponsor
Sponsor
Sponsor
sponsor
richcash




PostPosted: Sun Mar 09, 2008 6:48 pm   Post subject: RE:How to check for simultaneous keypresses?

Look up Input.KeyDown
Sean




PostPosted: Sun Mar 09, 2008 8:54 pm   Post subject: Re: How to check for simultaneous keypresses?

Input.KeyDown, like mentioned above is what you need.

You'll need to code it with an if statement checking if the two buttons are pressed. Then it should display an appropriate message to tell you what buttons are being pressed.
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  [ 3 Posts ]
Jump to:   


Style:  
Search: