Computer Science Canada

how to recieve more than one key at the same time?

Author:  greenapplesodaex [ 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?

Author:  omni [ Wed Jun 16, 2004 2:27 pm ]
Post 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

Author:  SuperGenius [ Wed Jun 16, 2004 3:25 pm ]
Post subject: 

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

Author:  Tony [ Wed Jun 16, 2004 3:55 pm ]
Post 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


: