🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

another Q, about keyboard input in dos

Started by
0 comments, last by farmersckn 24 years, 5 months ago
im using turbo c++ for dos, v.3.0( i think...) i was wondering how you could trap multiple key presses, like up and ''a'' or something like that. i know you can look at port 60h to get the scancode of the last key pressed, but i need to know what keys are pressed, even if there is more than one down at a time... plz help, if you can. thanks.
Yesterday is the past, tomorrow is the future. Today is a gift, that is why we call it the present.
Advertisement
In order to check for multiple keys down, you really need to rewrite the DOS keyboard interrupt handler. Check out LaMothe''s old DOS game programming books for details.

This topic is closed to new replies.

Advertisement