Enum stick::Input [] [src]

pub enum Input {
    Move(f32f32),
    Pov(f32f32),
    ThrottleL(f32),
    ThrottleR(f32),
    Press(Button),
    Release(Button),
}

Joystick Input

Variants

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.

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.

One of the following has happenned,

  • The joystick's throttle has moved.
  • The on-screen throttle has moved.

One of the following has happenned,

  • The joystick's throttle has moved.
  • The on-screen throttle has moved.

One of the following has happenned,

  • One of the joystick's buttons has been pressed.
  • An on-screen button has been pressed.

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]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Copy for Input
[src]

impl Clone for Input
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for Input
[src]

[src]

Formats the value using the given formatter. Read more