Enum input::Motion [] [src]

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

Models different kinds of motion.

Variants

MouseCursor(f64f64)

x and y in window coordinates.

MouseRelative(f64f64)

x and y in relative coordinates.

MouseScroll(f64f64)

x and y in scroll ticks.

ControllerAxis(ControllerAxisArgs)

joystick axis move event.

Trait Implementations

impl Debug for Motion
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl PartialEq for Motion
[src]

fn eq(&self, __arg_0: &Motion) -> bool

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

fn ne(&self, __arg_0: &Motion) -> bool

This method tests for !=.

impl Encodable for Motion
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Decodable for Motion
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Motion, __D::Error>

impl Clone for Motion
[src]

fn clone(&self) -> Motion

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Motion
[src]

impl From<ControllerAxisArgs> for Motion
[src]

fn from(args: ControllerAxisArgs) -> Self

Performs the conversion.