pub enum PressedInput<PK> {
Key(PressedKey<PK>),
Virtual(KeyOutput),
}
Expand description
State resulting from Event.
Variants§
Key(PressedKey<PK>)
Physically pressed key.
Virtual(KeyOutput)
Virtually pressed key, and its keycode.
Implementations§
Source§impl<PK> PressedInput<PK>
impl<PK> PressedInput<PK>
Sourcepub fn pressed_key(key_state: PK, keymap_index: u16) -> Self
pub fn pressed_key(key_state: PK, keymap_index: u16) -> Self
Constructor for a PressedInput::Key.
Trait Implementations§
Source§impl<PK: Clone> Clone for PressedInput<PK>
impl<PK: Clone> Clone for PressedInput<PK>
Source§fn clone(&self) -> PressedInput<PK>
fn clone(&self) -> PressedInput<PK>
Returns a copy 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 moreSource§impl<PK: Debug> Debug for PressedInput<PK>
impl<PK: Debug> Debug for PressedInput<PK>
impl<PK: Copy> Copy for PressedInput<PK>
Auto Trait Implementations§
impl<PK> Freeze for PressedInput<PK>where
PK: Freeze,
impl<PK> RefUnwindSafe for PressedInput<PK>where
PK: RefUnwindSafe,
impl<PK> Send for PressedInput<PK>where
PK: Send,
impl<PK> Sync for PressedInput<PK>where
PK: Sync,
impl<PK> Unpin for PressedInput<PK>where
PK: Unpin,
impl<PK> UnwindSafe for PressedInput<PK>where
PK: 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