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

The controller is powering on or off.

Fields of Idle

Sequence number for the state.

Fields of Input

Sequence number for the state.

Button state of the controller.

Trigger state of the controller.

Pads state.

Orientation of the controller if sensors are enabled.

Acceleration of the controller if sensors are enabled.

Methods

impl State
[src]

Parse the state from a given packet.

Trait Implementations

impl Clone for State
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for State
[src]

impl PartialEq for State
[src]

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

This method tests for !=.

impl Debug for State
[src]

Formats the value using the given formatter.