Enum piston::input::Motion []

pub enum Motion {
    MouseCursor(f64f64),
    MouseRelative(f64f64),
    MouseScroll(f64f64),
    JoystickAxis(JoystickAxisArgs),
}

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.

JoystickAxis(JoystickAxisArgs)

joystick axis move event.

Trait Implementations

impl Debug for Motion

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

impl PartialEq<Motion> for Motion

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

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

impl Encodable for Motion

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

impl Decodable for Motion

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

impl Clone for Motion

fn clone(&self) -> Motion

impl Copy for Motion

impl From<JoystickAxisArgs> for Motion