pub enum GamepadEvent {
Connected {
id: GamepadId,
kind: PadKind,
},
Disconnected {
id: GamepadId,
},
State {
id: GamepadId,
snapshot: GamepadSnapshot,
},
}Expand description
What a backend reports about a pad.
Variants§
Connected
A pad appeared, at rest.
Disconnected
A pad went away; whatever it held is released.
State
What a pad is doing now.
Trait Implementations§
Source§impl Clone for GamepadEvent
impl Clone for GamepadEvent
impl Copy for GamepadEvent
Source§impl Debug for GamepadEvent
impl Debug for GamepadEvent
Source§impl PartialEq for GamepadEvent
impl PartialEq for GamepadEvent
impl StructuralPartialEq for GamepadEvent
Auto Trait Implementations§
impl Freeze for GamepadEvent
impl RefUnwindSafe for GamepadEvent
impl Send for GamepadEvent
impl Sync for GamepadEvent
impl Unpin for GamepadEvent
impl UnsafeUnpin for GamepadEvent
impl UnwindSafe for GamepadEvent
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