Enum conrod::input::Motion
[−]
[src]
pub enum Motion { MouseCursor { x: Scalar, y: Scalar, }, MouseRelative { x: Scalar, y: Scalar, }, Scroll { x: Scalar, y: Scalar, }, 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: Scalar | |
y: Scalar |
MouseRelative
Relative mouse movement.
Fields of MouseRelative
x: Scalar | |
y: Scalar |
Scroll
x and y in scroll ticks.
Fields of Scroll
x: Scalar | |
y: Scalar |
ControllerAxis(ControllerAxisArgs)
controller axis move 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