
-----------------------------------
greenapplesodaex
Wed Jun 16, 2004 12:27 pm

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?

-----------------------------------
omni
Wed Jun 16, 2004 2:27 pm


-----------------------------------
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
Wed Jun 16, 2004 3:25 pm


-----------------------------------
Input.Keydown doesn't wait for input like getch. If you want it to then look up Input.Pause.

-----------------------------------
Tony
Wed Jun 16, 2004 3:55 pm


-----------------------------------
considering we have nearly 50K posts at this point, I find it funny when the needed [url=http://www.compsci.ca/v2/viewtopic.php?p=273]tutorial has a post number of 273 :lol:
