pub struct KeyInput {
pub scancode: ScanCode,
pub keycode: Option<KeyCode>,
pub mods: KeyMods,
}
Expand description
A simple wrapper bundling the four properties of a keyboard stroke.
Fields§
§scancode: ScanCode
The scancode. For more info on what they are and when to use them refer to the
keyboard
module.
keycode: Option<KeyCode>
The keycode corresponding to the scancode, if there is one.
mods: KeyMods
The keyboard modifiers active at the moment of input.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for KeyInput
impl Send for KeyInput
impl Sync for KeyInput
impl Unpin for KeyInput
impl UnwindSafe for KeyInput
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
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
source§impl<T> HasMut<T> for T
impl<T> HasMut<T> for T
source§fn retrieve_mut(&mut self) -> &mut T
fn retrieve_mut(&mut self) -> &mut T
Method to retrieve the context type as mutable.