pub enum PressedInput<KR, KS> {
Key(PressedKey<KR, KS>),
Virtual(KeyOutput),
}
Expand description
State resulting from Event.
Variants§
Key(PressedKey<KR, KS>)
Physically pressed key.
Virtual(KeyOutput)
Virtually pressed key, and its keycode.
Implementations§
Source§impl<KR, KS> PressedInput<KR, KS>
impl<KR, KS> PressedInput<KR, KS>
Sourcepub fn pressed_key(keymap_index: u16, key_ref: KR, key_state: KS) -> Self
pub fn pressed_key(keymap_index: u16, key_ref: KR, key_state: KS) -> Self
Constructor for a PressedInput::Key.
Trait Implementations§
Source§impl<KR: Clone, KS: Clone> Clone for PressedInput<KR, KS>
impl<KR: Clone, KS: Clone> Clone for PressedInput<KR, KS>
Source§fn clone(&self) -> PressedInput<KR, KS>
fn clone(&self) -> PressedInput<KR, KS>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<KR: Copy, KS: Copy> Copy for PressedInput<KR, KS>
Auto Trait Implementations§
impl<KR, KS> Freeze for PressedInput<KR, KS>
impl<KR, KS> RefUnwindSafe for PressedInput<KR, KS>where
KR: RefUnwindSafe,
KS: RefUnwindSafe,
impl<KR, KS> Send for PressedInput<KR, KS>
impl<KR, KS> Sync for PressedInput<KR, KS>
impl<KR, KS> Unpin for PressedInput<KR, KS>
impl<KR, KS> UnwindSafe for PressedInput<KR, KS>where
KR: UnwindSafe,
KS: UnwindSafe,
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