Enum input::Motion [] [src]

pub enum Motion {
    MouseCursor(f64, f64),
    MouseRelative(f64, f64),
    MouseScroll(f64, f64),
    ControllerAxis(ControllerAxisArgs),
    Touch(TouchArgs),
}

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.

ControllerAxis

controller axis move event.

Touch

touch event.

Trait Implementations

impl From<ControllerAxisArgs> for Motion

fn from(args: ControllerAxisArgs) -> Self

Derived Implementations

impl Debug for Motion

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

impl PartialEq for Motion

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

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

impl Encodable for Motion

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

impl Decodable for Motion

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

impl Clone for Motion

fn clone(&self) -> Motion

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

impl Copy for Motion