pub enum DeviceEvent {
Axis(AxisEvent),
Button(ButtonEvent),
}Expand description
Wrapped event
Device events wrap axis and button events. This is intended for use with the builtin Device abstraction.
Variants§
Implementations§
Source§impl DeviceEvent
impl DeviceEvent
Sourcepub fn from_event(device: &Device, event: Event) -> Self
pub fn from_event(device: &Device, event: Event) -> Self
Creates new DeviceEvent from event using mappings form device.
Trait Implementations§
Source§impl Clone for DeviceEvent
impl Clone for DeviceEvent
Source§fn clone(&self) -> DeviceEvent
fn clone(&self) -> DeviceEvent
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 DeviceEvent
impl Debug for DeviceEvent
Source§impl GenericEvent for DeviceEvent
impl GenericEvent for DeviceEvent
Source§impl Hash for DeviceEvent
impl Hash for DeviceEvent
Source§impl PartialEq for DeviceEvent
impl PartialEq for DeviceEvent
impl Copy for DeviceEvent
impl Eq for DeviceEvent
impl StructuralPartialEq for DeviceEvent
Auto Trait Implementations§
impl Freeze for DeviceEvent
impl RefUnwindSafe for DeviceEvent
impl Send for DeviceEvent
impl Sync for DeviceEvent
impl Unpin for DeviceEvent
impl UnwindSafe for DeviceEvent
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