pub enum BasePressedKeyState {
Keyboard(PressedKeyState),
LayerModifier(PressedModifierKeyState),
}
Expand description
Aggregates the key::PressedKeyState types.
Variants§
Keyboard(PressedKeyState)
A keyboard key’s pressed state.
LayerModifier(PressedModifierKeyState)
A layer modifier key’s pressed state.
Trait Implementations§
Source§impl Debug for BasePressedKeyState
impl Debug for BasePressedKeyState
Source§impl From<PressedKeyState> for BasePressedKeyState
impl From<PressedKeyState> for BasePressedKeyState
Source§fn from(pks: PressedKeyState) -> Self
fn from(pks: PressedKeyState) -> Self
Converts to this type from the input type.
Source§impl From<PressedModifierKeyState> for BasePressedKeyState
impl From<PressedModifierKeyState> for BasePressedKeyState
Source§fn from(pks: PressedModifierKeyState) -> Self
fn from(pks: PressedModifierKeyState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BasePressedKeyState
impl PartialEq for BasePressedKeyState
Source§impl<K: Copy + Into<BaseKey>> PressedKeyState<K> for BasePressedKeyState
impl<K: Copy + Into<BaseKey>> PressedKeyState<K> for BasePressedKeyState
Source§fn handle_event_for(
&mut self,
_context: Context,
keymap_index: u16,
key: &K,
event: Event<Event>,
) -> PressedKeyEvents<Event>
fn handle_event_for( &mut self, _context: Context, keymap_index: u16, key: &K, event: Event<Event>, ) -> PressedKeyEvents<Event>
Used to update the PressedKeyState’s state, and possibly yield event(s).
Source§fn key_output(&self, key: &K) -> KeyOutputState
fn key_output(&self, key: &K) -> KeyOutputState
Output for the pressed key state.
impl StructuralPartialEq for BasePressedKeyState
Auto Trait Implementations§
impl Freeze for BasePressedKeyState
impl RefUnwindSafe for BasePressedKeyState
impl Send for BasePressedKeyState
impl Sync for BasePressedKeyState
impl Unpin for BasePressedKeyState
impl UnwindSafe for BasePressedKeyState
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