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 Clone for Motion[src]
fn clone(&self) -> Motion[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Decodable for Motion[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Motion, __D::Error>[src]
Deserialize a value using a Decoder.
impl Encodable for Motion[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>[src]
Serialize a value using an Encoder.
impl PartialEq for Motion[src]
fn eq(&self, __arg_0: &Motion) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Motion) -> bool[src]
This method tests for !=.
impl Debug for Motion[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl From<ControllerAxisArgs> for Motion[src]
fn from(args: ControllerAxisArgs) -> Self[src]
Performs the conversion.