Function TCOD_console_check_for_keypress¶
Defined in File console_etc.h
Function Documentation¶
-
TCOD_key_t TCOD_console_check_for_keypress(int flags)
Return immediately with a recently pressed key.
- Parameters
flags – A TCOD_event_t bit-field, for example:
TCOD_EVENT_KEY_PRESS
- Returns
A TCOD_key_t struct with a recently pressed key. If no event exists then the
vk
attribute will beTCODK_NONE