Struct pad_motion::protocol::ControllerData[][src]

pub struct ControllerData {
    pub connected: bool,
    pub d_pad_left: bool,
    pub d_pad_down: bool,
    pub d_pad_right: bool,
    pub d_pad_up: bool,
    pub start: bool,
    pub right_stick_button: bool,
    pub left_stick_button: bool,
    pub select: bool,
    pub square: bool,
    pub cross: bool,
    pub circle: bool,
    pub triangle: bool,
    pub r1: bool,
    pub l1: bool,
    pub r2: bool,
    pub l2: bool,
    pub ps: u8,
    pub touch: u8,
    pub left_stick_x: u8,
    pub left_stick_y: u8,
    pub right_stick_x: u8,
    pub right_stick_y: u8,
    pub analog_d_pad_left: u8,
    pub analog_d_pad_down: u8,
    pub analog_d_pad_right: u8,
    pub analog_d_pad_up: u8,
    pub analog_square: u8,
    pub analog_triangle: u8,
    pub analog_cross: u8,
    pub analog_circle: u8,
    pub analog_r1: u8,
    pub analog_l1: u8,
    pub analog_r2: u8,
    pub analog_l2: u8,
    pub first_touch: TouchData,
    pub second_touch: TouchData,
    pub motion_data_timestamp: u64,
    pub accelerometer_x: f32,
    pub accelerometer_y: f32,
    pub accelerometer_z: f32,
    pub gyroscope_pitch: f32,
    pub gyroscope_yaw: f32,
    pub gyroscope_roll: f32,
}

Fields

connected: boold_pad_left: boold_pad_down: boold_pad_right: boold_pad_up: boolstart: boolright_stick_button: boolleft_stick_button: boolselect: boolsquare: boolcross: boolcircle: booltriangle: boolr1: booll1: boolr2: booll2: boolps: u8touch: u8left_stick_x: u8left_stick_y: u8right_stick_x: u8right_stick_y: u8analog_d_pad_left: u8analog_d_pad_down: u8analog_d_pad_right: u8analog_d_pad_up: u8analog_square: u8analog_triangle: u8analog_cross: u8analog_circle: u8analog_r1: u8analog_l1: u8analog_r2: u8analog_l2: u8first_touch: TouchDatasecond_touch: TouchDatamotion_data_timestamp: u64accelerometer_x: f32accelerometer_y: f32accelerometer_z: f32gyroscope_pitch: f32gyroscope_yaw: f32gyroscope_roll: f32

Trait Implementations

impl Clone for ControllerData[src]

impl Copy for ControllerData[src]

impl Debug for ControllerData[src]

impl Default for ControllerData[src]

impl PartialEq<ControllerData> for ControllerData[src]

impl StructuralPartialEq for ControllerData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,