#[repr(C)]
pub struct ControllerData {
Show 18 fields pub status: u32, pub is_joycon_half: bool, pub pad: [u8; 3], pub color_descriptor_single: u32, pub color_single: ControllerColor, pub color_descriptor_split: u32, pub color_right: ControllerColor, pub color_left: ControllerColor, pub pro_controller_state: ControllerState, pub handheld_state: ControllerState, pub joined_state: ControllerState, pub left_state: ControllerState, pub right_state: ControllerState, pub main_no_analog_state: ControllerState, pub main_state: ControllerState, pub unk: [u8; 10872], pub mac_addresses: [ControllerMacAddress; 2], pub unk_2: [u8; 3600],
}

Fields

status: u32is_joycon_half: boolpad: [u8; 3]color_descriptor_single: u32color_single: ControllerColorcolor_descriptor_split: u32color_right: ControllerColorcolor_left: ControllerColorpro_controller_state: ControllerStatehandheld_state: ControllerStatejoined_state: ControllerStateleft_state: ControllerStateright_state: ControllerStatemain_no_analog_state: ControllerStatemain_state: ControllerStateunk: [u8; 10872]mac_addresses: [ControllerMacAddress; 2]unk_2: [u8; 3600]

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.