Function tetra::window::set_key_repeat_enabled[][src]

pub fn set_key_repeat_enabled(ctx: &mut Context, key_repeat_enabled: bool)
Expand description

Sets whether or not key repeat should be 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.