pub struct Keyboard { /* private fields */ }
Expand description
All of the keyboard states
Implementations
sourceimpl Keyboard
impl Keyboard
Multiple keys
pub fn is_any_key_down<'a>(
&self,
keys: impl IntoIterator<Item = &'a Key>
) -> bool
pub fn is_any_key_up<'a>(&self, keys: impl IntoIterator<Item = &'a Key>) -> bool
pub fn is_any_key_pressed<'a>(
&self,
keys: impl IntoIterator<Item = &'a Key>
) -> bool
pub fn is_any_key_released<'a>(
&self,
keys: impl IntoIterator<Item = &'a Key>
) -> bool
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Keyboard
impl Send for Keyboard
impl Sync for Keyboard
impl Unpin for Keyboard
impl UnwindSafe for Keyboard
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more