pub enum KeyMapping {
Usb(u16),
Evdev(u16),
Xkb(u16),
Win(u16),
Mac(u16),
Code(Option<KeyMappingCode>),
Id(KeyMappingId),
}
Expand description
The mapping of values between platforms for a specific key
Variants§
Usb(u16)
USB HID value for a specific key
Evdev(u16)
Linux kernel evdev value for a specific key
Xkb(u16)
X11 value for a specific key
Win(u16)
Windows value for a specific key
Mac(u16)
Mac value for a specific key
Code(Option<KeyMappingCode>)
W3 browser event code for a specific key
Id(KeyMappingId)
Id for a specific key
Trait Implementations§
Source§impl Clone for KeyMapping
impl Clone for KeyMapping
Source§fn clone(&self) -> KeyMapping
fn clone(&self) -> KeyMapping
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 Debug for KeyMapping
impl Debug for KeyMapping
Source§impl Hash for KeyMapping
impl Hash for KeyMapping
Source§impl PartialEq for KeyMapping
impl PartialEq for KeyMapping
Source§impl TryFrom<KeyMapping> for KeyMap
impl TryFrom<KeyMapping> for KeyMap
impl Copy for KeyMapping
impl Eq for KeyMapping
impl StructuralPartialEq for KeyMapping
Auto Trait Implementations§
impl Freeze for KeyMapping
impl RefUnwindSafe for KeyMapping
impl Send for KeyMapping
impl Sync for KeyMapping
impl Unpin for KeyMapping
impl UnwindSafe for KeyMapping
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