Function ndless::input::is_key_pressed

source ·
pub fn is_key_pressed(key: impl Borrow<Key>) -> bool
Expand description

Returns true if the specific key is pressed. Note that you may pass either an owned Key or a borrowed &Key.