Enum conrod::input::Motion [] [src]

pub enum Motion {
    MouseCursor {
        x: Scalar,
        y: Scalar,
    },
    MouseRelative {
        x: Scalar,
        y: Scalar,
    },
    Scroll {
        x: Scalar,
        y: Scalar,
    },
    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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Motion
[src]

Formats the value using the given formatter.

impl PartialEq for Motion
[src]

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

This method tests for !=.