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(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.
ControllerAxis(ControllerAxisArgs)controller axis move event.
Touch(TouchArgs)touch event.
Trait Implementations
impl Copy for Motion[src]
impl Copy for Motionimpl Clone for Motion[src]
impl Clone for Motionfn clone(&self) -> Motion[src]
fn clone(&self) -> MotionReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for Motion[src]
impl PartialEq for Motionfn eq(&self, other: &Motion) -> bool[src]
fn eq(&self, other: &Motion) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Motion) -> bool[src]
fn ne(&self, other: &Motion) -> boolThis method tests for !=.
impl Debug for Motion[src]
impl Debug for Motionfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<ControllerAxisArgs> for Motion[src]
impl From<ControllerAxisArgs> for Motionfn from(args: ControllerAxisArgs) -> Self[src]
fn from(args: ControllerAxisArgs) -> SelfPerforms the conversion.
impl From<TouchArgs> for Motion[src]
impl From<TouchArgs> for Motionimpl From<Motion> for Input[src]
impl From<Motion> for Input