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).
Check if a key is pressed down
Prevents default processing of the key
Check if left shift key is pressed
Check if right shift key is pressed
Check if any of of the shift keys are pressed
Check if left control key is pressed
Check if right control key is pressed
Check if any of the control keys are pressed
Check if left alt key is pressed
Check if right alt key is pressed
Check if any of the alt keys are pressed
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.