Enum nannou::ui::input::Motion [−][src]
pub enum Motion { MouseCursor { x: f64, y: f64, }, MouseRelative { x: f64, y: f64, }, Scroll { x: f64, y: f64, }, ControllerAxis(ControllerAxisArgs), }
Different kinds of motion input.
Variants
MouseCursor
Absolute cursor position within the window.
For more details on co-ordinate orientation etc, see the Input
docs.
Fields of MouseCursor
x: f64 | |
y: f64 |
MouseRelative
Relative mouse movement.
Fields of MouseRelative
x: f64 | |
y: f64 |
Scroll
x and y in scroll ticks.
Fields of Scroll
x: f64 | |
y: f64 |
ControllerAxis(ControllerAxisArgs)
controller axis move event.
Trait Implementations
impl Clone for Motion
[src]
impl Clone for Motion
fn clone(&self) -> Motion
[src]
fn clone(&self) -> Motion
Returns 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 Debug for Motion
[src]
impl Debug for Motion
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl From<Motion> for Input
[src]
impl From<Motion> for Input
impl Copy for Motion
[src]
impl Copy for Motion
impl PartialEq<Motion> for Motion
[src]
impl PartialEq<Motion> for Motion