Enum stick::Input
[−]
[src]
pub enum Input { Move(f32, f32), Pov(f32, f32), ThrottleL(f32), ThrottleR(f32), Press(Button), Release(Button), }
Joystick Input
Variants
Move(f32, f32)
One of the following has happenned,
- The joystick has moved to a different position.
- The C-pad has moved.
- The on-screen joystick 1 has moved.
Pov(f32, f32)
One of the following has happenned,
- The joystick's POV hat has moved.
- The POV-Joystick has moved.
- The on-screen joystick 2 has moved.
ThrottleL(f32)
One of the following has happenned,
- The joystick's throttle has moved.
- The on-screen throttle has moved.
ThrottleR(f32)
One of the following has happenned,
- The joystick's throttle has moved.
- The on-screen throttle has moved.
Press(Button)
One of the following has happenned,
- One of the joystick's buttons has been pressed.
- An on-screen button has been pressed.
Release(Button)
One of the following has happenned,
- One of the joystick's buttons has been released.
- An on-screen button has been released.
Trait Implementations
impl PartialEq for Input
[src]
fn eq(&self, __arg_0: &Input) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Input) -> bool
[src]
This method tests for !=
.
impl Copy for Input
[src]
impl Clone for Input
[src]
fn clone(&self) -> Input
[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