Enum nannou::ui::input::Motion [] [src]

pub enum Motion {
    MouseCursor {
        x: f64,
        y: f64,
    },
    MouseRelative {
        x: f64,
        y: f64,
    },
    Scroll {
        x: f64,
        y: f64,
    },
    ControllerAxis(ControllerAxisArgs),
}

Different kinds of motion input.

Variants

Absolute cursor position within the window.

For more details on co-ordinate orientation etc, see the Input docs.

Fields of MouseCursor

Relative mouse movement.

Fields of MouseRelative

x and y in scroll ticks.

Fields of Scroll

controller axis move 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 PartialEq<Motion> 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.