Struct input::controller::ControllerAxisArgs
source · Expand description
Components of a controller axis move event. Not guaranteed consistent across backends.
Fields§
§id: i32
Which controller moved.
axis: u8
The axis that moved.
position: f64
Position of the controller. Usually [-1.0, 1.0], though backends may use a different range for various devices.
Implementations§
Trait Implementations§
source§impl Clone for ControllerAxisArgs
impl Clone for ControllerAxisArgs
source§fn clone(&self) -> ControllerAxisArgs
fn clone(&self) -> ControllerAxisArgs
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 ControllerAxisArgs
impl Debug for ControllerAxisArgs
source§impl<'de> Deserialize<'de> for ControllerAxisArgs
impl<'de> Deserialize<'de> for ControllerAxisArgs
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 From<ControllerAxisArgs> for Input
impl From<ControllerAxisArgs> for Input
source§fn from(args: ControllerAxisArgs) -> Self
fn from(args: ControllerAxisArgs) -> Self
Converts to this type from the input type.
source§impl From<ControllerAxisArgs> for Motion
impl From<ControllerAxisArgs> for Motion
source§fn from(args: ControllerAxisArgs) -> Self
fn from(args: ControllerAxisArgs) -> Self
Converts to this type from the input type.