Enum piston::input::Motion
[−]
pub enum Motion { MouseCursor(f64, f64), MouseRelative(f64, f64), MouseScroll(f64, f64), JoystickAxis(JoystickAxisArgs), }
Models different kinds of motion.
Variants
MouseCursor(f64, f64)
x and y in window coordinates.
MouseRelative(f64, f64)
x and y in relative coordinates.
MouseScroll(f64, f64)
x and y in scroll ticks.
JoystickAxis(JoystickAxisArgs)
joystick axis move event.