Help getting multiple keypresses in a DOS compiler

This is a discussion on Help getting multiple keypresses in a DOS compiler within the Game Programming forums, part of the General Programming Boards category; Ok, I need help getting multiple keypresses at once in a DOS compilier. I'm using Turbo C++ 3.1, and I ...

Help getting multiple keypresses in a DOS compiler

Ok, I need help getting multiple keypresses at once in a DOS compilier. I'm using Turbo C++ 3.1, and I need up to 4 keys at once. It's a 2 player ASCII game where little dudes fly across the center and block your bullets and there is a player at the top and bottom, and they have to hit and kill each other. I need each player to be able to move and fire while the other player may be doing the same. Thanks in advance.

The turnOff argument (here set to true) means that the player cannot simply hold down this particular key and constantly fire missiles. He has to let go and press it again and again. Obviously, if you want a control hold-downable (i.e. an accelerator in a race game) set this to false.