Enum piston::input::Motion [−] [src]

pub enum Motion {
    MouseCursor(f64, f64),
    MouseRelative(f64, f64),
    MouseScroll(f64, f64),
}

Models different kinds of motion.

Variants

MouseCursor

x and y in window coordinates.

MouseRelative

x and y in relative coordinates.

MouseScroll

x and y in scroll ticks.

Trait Implementations

Derived 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