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 Copy for Motion
[src]
impl PartialEq<Motion> 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 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