pub enum KeyMappingStrategy {
Physical,
Symbolic,
}
Expand description
Represents different approaches to mapping key states, to allow the user to indicate their preference.
Variants§
Physical
Preserve physical keys one-to-one. This is most compatible, but the resulting mapping may be less intuitive. For instance, symbols may not be mapped as expected.
Symbolic
Preserve symbols one-to-one. This is more intuitive, but may cause issues with some software. This approach will rewrite the state of the modifier keys to convey the symbols being pressed.
Auto Trait Implementations§
impl RefUnwindSafe for KeyMappingStrategy
impl Send for KeyMappingStrategy
impl Sync for KeyMappingStrategy
impl Unpin for KeyMappingStrategy
impl UnwindSafe for KeyMappingStrategy
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