Struct conrod::input::ControllerAxisArgs
[−]
[src]
pub struct ControllerAxisArgs {
pub id: i32,
pub axis: u8,
pub position: f64,
}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]
pub fn new(id: i32, axis: u8, position: f64) -> ControllerAxisArgs[src]
Create a new ControllerAxisArgs object. Intended for use by backends when emitting events.
Trait Implementations
impl From<ControllerAxisArgs> for Motion[src]
fn from(args: ControllerAxisArgs) -> Motion[src]
Performs the conversion.
impl Copy for ControllerAxisArgs[src]
impl PartialEq<ControllerAxisArgs> for ControllerAxisArgs[src]
fn eq(&self, __arg_0: &ControllerAxisArgs) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ControllerAxisArgs) -> bool[src]
This method tests for !=.
impl Debug for ControllerAxisArgs[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter. Read more
impl Clone for ControllerAxisArgs[src]
fn clone(&self) -> ControllerAxisArgs[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Encodable for ControllerAxisArgs[src]
fn encode<__S>(&self, __arg_0: &mut __S) -> Result<(), <__S as Encoder>::Error> where
__S: Encoder, [src]
__S: Encoder,
Serialize a value using an Encoder.