Function tetra::window::is_key_repeat_enabled [−][src]
pub fn is_key_repeat_enabled(ctx: &Context) -> bool
Expand description
Returns whether or not key repeat is enabled.
Normally, a KeyPressed
event will only be fired once, when
the key is initially pressed. Enabling key repeat causes KeyPressed
events to be fired
continuously while the key is held down.