NOTE: Keyboards has a limit to how meny keys that can be pressed at the same time. Pressing four to five keys at the same time should be no problem however.
🎉 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!
Simultaneous Keyboard Input in C++
Not 100% sure about this (I've never actually done game code in DOS), but if it isn't DirectX, couldn't you just write code to allocate time slices to each player for input instead of 'locking' the game while a key is pressed?
I.E. Write a piece of code to buffer the keyboard input and then just get the last key, process it and move onto the next, then graphics, update etc., repeating until the game is over.
This is essentially how I've written code to work over networks, so I assume it'd be similar.
Hope this helped.
[This message has been edited by Stark (edited December 14, 1999).]