Struct input::controller::ControllerAxisArgs [−][src]
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.
Methods
impl ControllerAxisArgs[src]
impl ControllerAxisArgspub fn new(id: i32, axis: u8, position: f64) -> Self[src]
pub fn new(id: i32, axis: u8, position: f64) -> SelfCreate a new ControllerAxisArgs object. Intended for use by backends when emitting events.
Trait Implementations
impl Copy for ControllerAxisArgs[src]
impl Copy for ControllerAxisArgsimpl Clone for ControllerAxisArgs[src]
impl Clone for ControllerAxisArgsfn clone(&self) -> ControllerAxisArgs[src]
fn clone(&self) -> ControllerAxisArgsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for ControllerAxisArgs[src]
impl PartialEq for ControllerAxisArgsfn eq(&self, other: &ControllerAxisArgs) -> bool[src]
fn eq(&self, other: &ControllerAxisArgs) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ControllerAxisArgs) -> bool[src]
fn ne(&self, other: &ControllerAxisArgs) -> boolThis method tests for !=.
impl Debug for ControllerAxisArgs[src]
impl Debug for ControllerAxisArgsfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<ControllerAxisArgs> for Motion[src]
impl From<ControllerAxisArgs> for Motionfn from(args: ControllerAxisArgs) -> Self[src]
fn from(args: ControllerAxisArgs) -> SelfPerforms the conversion.
impl From<ControllerAxisArgs> for Input[src]
impl From<ControllerAxisArgs> for Inputfn from(args: ControllerAxisArgs) -> Self[src]
fn from(args: ControllerAxisArgs) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for ControllerAxisArgs
impl Send for ControllerAxisArgsimpl Sync for ControllerAxisArgs
impl Sync for ControllerAxisArgs