2

Possible Duplicate:
C/C++: Capture characters from standard input without waiting for enter to be pressed

Is there a way to read standard input continuously? I want to make an X and O game and I want the player to use the the arrows to move its position on the grid. I can't use cin because it requests you to press enter to get the input data into variables. So, does a function or an object doing that exist?

2

1 Answer 1

3

For console (text) applications you'd use something like ncurses, which does terminal 'GUI' controls.

For graphics applications you would use something like SDL which enables event-driven programming.

0

Not the answer you're looking for? Browse other questions tagged or ask your own question.