C++ Simultanious Key Presses

Started by
3 comments, last by Razza2003 21 years, 2 months ago
Does anyone know how I can get simultanious key presses, for example pressing [Space] [Up] and [Left] at the same time, that is multiplatform, for example, it will run on Linux, Dos, and Windows without any OS specific functions. At the moment I am using: if (kbhit()) c=getch(); Thx for any help. [edited by - Razza2003 on February 9, 2003 3:10:28 AM]
Advertisement
No, getting keyboard input is an OS-specific task.
Oh, I see, does anyone know how to do it in Dos?
read the port 0x60 (inp(0x60)), or hook up the keyboard interupt.
let me find a link for you.

http://www.algonet.se/~lars_and/download/keyboard.zip

there you go, mate.


---
novocaine thru yer veinz
---novocaine thru yer veinz
Thanks, this will help me.
:-)

This topic is closed to new replies.

Advertisement