[][src]Struct thorium::interchange::XBoxController

pub struct XBoxController {
    pub packet_number: u32,
    pub top_button: ControllerButton,
    pub left_button: ControllerButton,
    pub right_button: ControllerButton,
    pub bottom_button: ControllerButton,
    pub start_button: ControllerButton,
    pub back_button: ControllerButton,
    pub left_shoulder: ControllerButton,
    pub right_shoulder: ControllerButton,
    pub left_stick: ControllerButton,
    pub right_stick: ControllerButton,
    pub dpad_up: ControllerButton,
    pub dpad_down: ControllerButton,
    pub dpad_left: ControllerButton,
    pub dpad_right: ControllerButton,
    pub left_trigger: u8,
    pub right_trigger: u8,
    pub left_thumb_x: i16,
    pub left_thumb_y: i16,
    pub right_thumb_x: i16,
    pub right_thumb_y: i16,
    pub controller_id: u8,
    pub trigger_threshold: u8,
    pub left_thumb_deadzone: i16,
    pub right_thumb_deadzone: i16,
}

Platform independent representation for an XBox controller.

Fields

packet_number: u32top_button: ControllerButtonleft_button: ControllerButtonright_button: ControllerButtonbottom_button: ControllerButtonstart_button: ControllerButtonback_button: ControllerButtonleft_shoulder: ControllerButtonright_shoulder: ControllerButtonleft_stick: ControllerButtonright_stick: ControllerButtondpad_up: ControllerButtondpad_down: ControllerButtondpad_left: ControllerButtondpad_right: ControllerButtonleft_trigger: u8right_trigger: u8left_thumb_x: i16left_thumb_y: i16right_thumb_x: i16right_thumb_y: i16controller_id: u8trigger_threshold: u8left_thumb_deadzone: i16right_thumb_deadzone: i16

Trait Implementations

impl Copy for XBoxController[src]

impl PartialEq<XBoxController> for XBoxController[src]

impl Default for XBoxController[src]

impl Clone for XBoxController[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for XBoxController[src]

impl Debug for XBoxController[src]

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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<T> Any for T where
    T: 'static + ?Sized
[src]