pub struct KeyStates<'a> { /* private fields */ }
Expand description
Keyboard key states
Helper methods are provided to check the state of key modifiers (shift, control and alt).
Implementations§
Source§impl<'a> KeyStates<'a>
impl<'a> KeyStates<'a>
Sourcepub fn left_shift(&self) -> bool
pub fn left_shift(&self) -> bool
Check if left shift key is pressed
Sourcepub fn right_shift(&self) -> bool
pub fn right_shift(&self) -> bool
Check if right shift key is pressed
Sourcepub fn left_control(&self) -> bool
pub fn left_control(&self) -> bool
Check if left control key is pressed
Sourcepub fn right_control(&self) -> bool
pub fn right_control(&self) -> bool
Check if right control key is pressed
Auto Trait Implementations§
impl<'a> Freeze for KeyStates<'a>
impl<'a> RefUnwindSafe for KeyStates<'a>
impl<'a> Send for KeyStates<'a>
impl<'a> Sync for KeyStates<'a>
impl<'a> Unpin for KeyStates<'a>
impl<'a> !UnwindSafe for KeyStates<'a>
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