pub struct GamepadAxisEvent {
pub index: usize,
pub value: f64,
}
Expand description
A 1D axis event on a gamepad.
Fields§
§index: usize
The 1D axis index.
value: f64
The value of the axis (between -1.0 and 1.0, modeled after the Web Gamepad API).
Trait Implementations§
Source§impl Clone for GamepadAxisEvent
impl Clone for GamepadAxisEvent
Source§fn clone(&self) -> GamepadAxisEvent
fn clone(&self) -> GamepadAxisEvent
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 GamepadAxisEvent
impl Debug for GamepadAxisEvent
Source§impl<'de> Deserialize<'de> for GamepadAxisEvent
impl<'de> Deserialize<'de> for GamepadAxisEvent
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 GamepadAxisEvent
impl PartialEq for GamepadAxisEvent
Source§impl Serialize for GamepadAxisEvent
impl Serialize for GamepadAxisEvent
impl StructuralPartialEq for GamepadAxisEvent
Auto Trait Implementations§
impl Freeze for GamepadAxisEvent
impl RefUnwindSafe for GamepadAxisEvent
impl Send for GamepadAxisEvent
impl Sync for GamepadAxisEvent
impl Unpin for GamepadAxisEvent
impl UnwindSafe for GamepadAxisEvent
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