PDA

View Full Version : Keyboard input question



Dyne
12-11-2006, 09:36 AM
I'm writing a simple RPG battle engine for a class project and I have a quick question regarding keyboard input.

What I'd like to do is have the program wait and do absolutely nothing and only recognize keyboard inputs to the GL window. Here's some pseudocode

while( Player 1 has not selected a character )
{
//Wait for keyboard input to the GL window
}

while( Player 2 has not selected a character )
{
//Wait for input
}

And so on. How do I implement this? Thank you.

Dyne
12-11-2006, 11:15 AM
Never mind, I figured out a good way to do it. Thanks for your consideration.