Struct conrod::input::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 ControllerAxisArgs
pub fn new(id: i32, axis: u8, position: f64) -> ControllerAxisArgs
[src]
pub fn new(id: i32, axis: u8, position: f64) -> ControllerAxisArgs
Create a new ControllerAxisArgs object. Intended for use by backends when emitting events.
Trait Implementations
impl Clone for ControllerAxisArgs
[src]
impl Clone for ControllerAxisArgs
fn clone(&self) -> ControllerAxisArgs
[src]
fn clone(&self) -> ControllerAxisArgs
Returns 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)
Performs copy-assignment from source
. Read more
impl Debug for ControllerAxisArgs
[src]
impl Debug for ControllerAxisArgs
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Serialize for ControllerAxisArgs
[src]
impl Serialize for ControllerAxisArgs
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl From<ControllerAxisArgs> for Motion
[src]
impl From<ControllerAxisArgs> for Motion
fn from(args: ControllerAxisArgs) -> Motion
[src]
fn from(args: ControllerAxisArgs) -> Motion
Performs the conversion.
impl From<ControllerAxisArgs> for Input
[src]
impl From<ControllerAxisArgs> for Input
fn from(args: ControllerAxisArgs) -> Input
[src]
fn from(args: ControllerAxisArgs) -> Input
Performs the conversion.
impl<'de> Deserialize<'de> for ControllerAxisArgs
[src]
impl<'de> Deserialize<'de> for ControllerAxisArgs
fn deserialize<__D>(
__deserializer: __D
) -> Result<ControllerAxisArgs, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<ControllerAxisArgs, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for ControllerAxisArgs
[src]
impl Copy for ControllerAxisArgs
impl PartialEq<ControllerAxisArgs> for ControllerAxisArgs
[src]
impl PartialEq<ControllerAxisArgs> for ControllerAxisArgs
fn eq(&self, other: &ControllerAxisArgs) -> bool
[src]
fn eq(&self, other: &ControllerAxisArgs) -> bool
This 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) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for ControllerAxisArgs
impl Send for ControllerAxisArgs
impl Sync for ControllerAxisArgs
impl Sync for ControllerAxisArgs