pub enum GamepadControlEvent {
Button(GamepadButtonEvent),
Axis(GamepadAxisEvent),
Axis2D(GamepadAxis2DEvent),
}
Expand description
A control-specific event on a gamepad.
Variants§
Trait Implementations§
Source§impl Clone for GamepadControlEvent
impl Clone for GamepadControlEvent
Source§fn clone(&self) -> GamepadControlEvent
fn clone(&self) -> GamepadControlEvent
Returns a copy 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 GamepadControlEvent
impl Debug for GamepadControlEvent
Source§impl<'de> Deserialize<'de> for GamepadControlEvent
impl<'de> Deserialize<'de> for GamepadControlEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GamepadControlEvent
impl PartialEq for GamepadControlEvent
Source§impl Serialize for GamepadControlEvent
impl Serialize for GamepadControlEvent
impl StructuralPartialEq for GamepadControlEvent
Auto Trait Implementations§
impl Freeze for GamepadControlEvent
impl RefUnwindSafe for GamepadControlEvent
impl Send for GamepadControlEvent
impl Sync for GamepadControlEvent
impl Unpin for GamepadControlEvent
impl UnwindSafe for GamepadControlEvent
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