Enum input::Motion [] [src]

pub enum Motion {
    MouseCursor(f64f64),
    MouseRelative(f64f64),
    MouseScroll(f64f64),
    ControllerAxis(ControllerAxisArgs),
    Touch(TouchArgs),
}

Models different kinds of motion.

Variants

x and y in window coordinates.

x and y in relative coordinates.

x and y in scroll ticks.

controller axis move event.

touch event.

Trait Implementations

impl Copy for Motion
[src]

impl Clone for Motion
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Decodable for Motion
[src]

[src]

Deserialize a value using a Decoder.

impl Encodable for Motion
[src]

[src]

Serialize a value using an Encoder.

impl PartialEq for Motion
[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 Motion
[src]

[src]

Formats the value using the given formatter.

impl From<ControllerAxisArgs> for Motion
[src]

[src]

Performs the conversion.