Enum steamy_controller::State
[−]
[src]
pub enum State { Power(bool), Idle { sequence: u32, }, Input { sequence: u32, buttons: Button, trigger: Trigger, pad: Pad, orientation: Angles, acceleration: Angles, }, }
The controller state.
Variants
Power(bool)
The controller is powering on or off.
Idle
Fields of Idle
sequence: u32 | Sequence number for the state. |
Input
Fields of Input
sequence: u32 | Sequence number for the state. |
Button state of the controller. | |
trigger: Trigger | Trigger state of the controller. |
pad: Pad | Pads state. |
orientation: Angles | Orientation of the controller if sensors are enabled. |
acceleration: Angles | Acceleration of the controller if sensors are enabled. |
Methods
impl State
[src]
Trait Implementations
impl Clone for State
[src]
fn clone(&self) -> State
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for State
[src]
impl PartialEq for State
[src]
fn eq(&self, __arg_0: &State) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &State) -> bool
This method tests for !=
.