pub struct KeycodeTranslator {
keycode_map: HashMap<u32, MapEntry>,
}Expand description
Translates scancodes of a particular type into Linux keycodes.
Fields§
§keycode_map: HashMap<u32, MapEntry>Implementations§
Source§impl KeycodeTranslator
impl KeycodeTranslator
Sourcepub fn new(from_type: KeycodeTypes) -> KeycodeTranslator
pub fn new(from_type: KeycodeTypes) -> KeycodeTranslator
Create a new KeycodeTranslator that translates from the from_type type to Linux keycodes.
Auto Trait Implementations§
impl Freeze for KeycodeTranslator
impl RefUnwindSafe for KeycodeTranslator
impl Send for KeycodeTranslator
impl Sync for KeycodeTranslator
impl Unpin for KeycodeTranslator
impl UnwindSafe for KeycodeTranslator
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