pub struct Keyboard { /* private fields */ }
Expand description
All of the keyboard states
Implementations§
Source§impl Keyboard
Lifecycle
impl Keyboard
Lifecycle
pub fn on_end_frame(&mut self)
Source§impl Keyboard
Multiple keys
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 Freeze for Keyboard
impl RefUnwindSafe for Keyboard
impl Send for Keyboard
impl Sync for Keyboard
impl Unpin for Keyboard
impl UnwindSafe for Keyboard
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more