Problems with Turbo Pascal...

Programming, for all ages and all languages.
Post Reply
rwfromxenon

Problems with Turbo Pascal...

Post by rwfromxenon »

Hey. I've been having some problems in Pascal. I've made a very simple PONG-like game in graphics mode. Everything works perfectly, the collisions, keypresses, etc. The only thing I have a problem with is pushing two buttons at the same time.

The reason I need this is because I plan on having two players on the same keyboard, player one using "w" and "s" to move the left paddle and player two using "i" and "k" to move the right. I was thinking along the lines of checking for other keys while a key is still being pressed, but it hasn't worked for me yet.

Any thoughts?
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:Problems with Turbo Pascal...

Post by bubach »

Maybe this helps, some diffrent ways of getting keyboard input:
http://board.flatassembler.net/topic.php?t=3324
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
Post Reply