Struct input::controller::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

Which controller moved.

The axis that moved.

Position of the controller. Usually [-1.0, 1.0], though backends may use a different range for various devices.

Methods

impl ControllerAxisArgs
[src]

[src]

Create a new ControllerAxisArgs object. Intended for use by backends when emitting events.

Trait Implementations

impl Copy for ControllerAxisArgs
[src]

impl Clone for ControllerAxisArgs
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Decodable for ControllerAxisArgs
[src]

[src]

Deserialize a value using a Decoder.

impl Encodable for ControllerAxisArgs
[src]

[src]

Serialize a value using an Encoder.

impl PartialEq for ControllerAxisArgs
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for ControllerAxisArgs
[src]

[src]

Formats the value using the given formatter.