Skip to main content

is_key_down

Function is_key_down 

Source
pub fn is_key_down(key: KeyCode) -> bool
Expand description

Checks if a key on the keyboard is being held.

ยงExamples

println!("is Space being held: {}", is_key_down(KeyCode::Space));