pub enum InputMapping {
ScanCodeKey(ScanCode),
VirtualKey(VirtualKeyCode),
MouseAxis(u32),
MouseAxisWithDevice(DeviceId, u32),
Gamepad(Axis),
GamepadWithDevice(GamepadId, Axis),
}
Variants§
ScanCodeKey(ScanCode)
VirtualKey(VirtualKeyCode)
MouseAxis(u32)
MouseAxisWithDevice(DeviceId, u32)
Gamepad(Axis)
GamepadWithDevice(GamepadId, Axis)
Trait Implementations§
Source§impl Clone for InputMapping
impl Clone for InputMapping
Source§fn clone(&self) -> InputMapping
fn clone(&self) -> InputMapping
Returns a duplicate 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 InputMapping
impl Debug for InputMapping
Source§impl Hash for InputMapping
impl Hash for InputMapping
Source§impl PartialEq for InputMapping
impl PartialEq for InputMapping
impl Copy for InputMapping
impl Eq for InputMapping
impl StructuralPartialEq for InputMapping
Auto Trait Implementations§
impl Freeze for InputMapping
impl RefUnwindSafe for InputMapping
impl Send for InputMapping
impl Sync for InputMapping
impl Unpin for InputMapping
impl UnwindSafe for InputMapping
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