pub fn wait_for_keypress(&mut self, flush: bool) -> Key {
        let tcod_key = unsafe {
            ffi::TCOD_console_wait_for_keypress(flush as c_bool)
        };
        tcod_key.into()
    }
/// This function will wait for a keypress event from the user, returning the [KeyState](../input/struct.KeyState.html)
/// that represents the event. If `flush` is true, all pending keypresses are flushed from the
/// keyboard buffer. If false, it returns the first element from it.
This function will wait for a keypress event from the user, returning the [KeyState](../input/struct.KeyState.html)
that represents the event. If `flush` is true, all pending keypresses are flushed from the
keyboard buffer. If false, it returns the first element from it.
This function will wait for a keypress event from the user returning the [ KeyState ] ( .. / input / struct . KeyState . html ) that represents the event . If ` flush ` is true all pending keypresses are flushed from the keyboard buffer . If false it returns the first element from it .
pub fn wait_for_keypress(&mut self, flush: bool) -> Key {
        let tcod_key = unsafe {
            ffi::TCOD_console_wait_for_keypress(flush as c_bool)
        };
        tcod_key.into()
    }
pub fn wait_for_keypress ( & mut self , flush : bool ) -> Key { let tcod_key = unsafe { ffi :: TCOD_console_wait_for_keypress ( flush as c_bool ) } ; tcod_key . into ( ) }
This function will wait for a keypress event from the user, returning the [KeyState](../input/struct.KeyState.html)
that represents the event.
This function will wait for a keypress event from the user returning the [ KeyState ] ( .. / input / struct . KeyState . html ) that represents the event .
&mut self
flush
bool
&mut self
flush
bool