libtcoddocumentation

2.4. Handling keyboard input

The keyboard handling functions allow you to get keyboard input from the user, either for turn by turn games (the function wait until the user press a key), or real time games (non blocking function).
WARNING : for proper redraw event handling, the keyboard functions should always be called just after TCODConsole::flush !