pub enum Event {
Disconnected,
ButtonPressed(ButtonPressed),
ButtonReleased(ButtonReleased),
AbsoluteAxisMotion(AbsoluteAxisMotion),
RelativeAxisMotion(RelativeAxisMotion),
}Expand description
Events sent by a GameInputDevice.
Variants§
Disconnected
The device has been disconnected - you should drop it.
ButtonPressed(ButtonPressed)
A button was pressed.
ButtonReleased(ButtonReleased)
A button was released.
AbsoluteAxisMotion(AbsoluteAxisMotion)
An absolute axis was moved.
RelativeAxisMotion(RelativeAxisMotion)
A relative axis was moved. This kind of event appears to be rare.
Trait Implementations§
impl Copy for Event
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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