pub enum Motion {
MouseCursor(f64, f64),
MouseRelative(f64, f64),
MouseScroll(f64, f64),
ControllerAxis(ControllerAxisArgs),
Touch(TouchArgs),
}
Expand description
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§
source§impl<'de> Deserialize<'de> for Motion
impl<'de> Deserialize<'de> for Motion
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<ControllerAxisArgs> for Motion
impl From<ControllerAxisArgs> for Motion
source§fn from(args: ControllerAxisArgs) -> Self
fn from(args: ControllerAxisArgs) -> Self
Converts to this type from the input type.