Skip to main content

is_key_released

Function is_key_released 

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

Checks if a key on the keyboard was just released.

ยงExamples

if is_key_released(KeyCode::Space) {
    println!("User let go of Space");
}