Struct nx::input::ControllerData
source · [−]#[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: u32
is_joycon_half: bool
pad: [u8; 3]
color_descriptor_single: u32
color_single: ControllerColor
color_descriptor_split: u32
color_right: ControllerColor
color_left: ControllerColor
pro_controller_state: ControllerState
handheld_state: ControllerState
joined_state: ControllerState
left_state: ControllerState
right_state: ControllerState
main_no_analog_state: ControllerState
main_state: ControllerState
unk: [u8; 10872]
mac_addresses: [ControllerMacAddress; 2]
unk_2: [u8; 3600]
Trait Implementations
sourceimpl Clone for ControllerData
impl Clone for ControllerData
sourcefn clone(&self) -> ControllerData
fn clone(&self) -> ControllerData
Returns a copy of the value. Read more
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for ControllerData
Auto Trait Implementations
impl RefUnwindSafe for ControllerData
impl Send for ControllerData
impl Sync for ControllerData
impl Unpin for ControllerData
impl UnwindSafe for ControllerData
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> RequestCommandParameter for T where
T: Copy,
impl<T> RequestCommandParameter for T where
T: Copy,
default fn before_request_write(
_raw: &T,
walker: &mut DataWalker,
_ctx: &mut CommandContext
) -> Result<(), ResultCode>
default fn before_send_sync_request(
raw: &T,
walker: &mut DataWalker,
_ctx: &mut CommandContext
) -> Result<(), ResultCode>
sourceimpl<T> RequestCommandParameter<T> for T where
T: Copy,
impl<T> RequestCommandParameter<T> for T where
T: Copy,
default fn after_request_read(
ctx: &mut ServerContext<'_>
) -> Result<T, ResultCode>
sourceimpl<T> ResponseCommandParameter for T where
T: Copy,
impl<T> ResponseCommandParameter for T where
T: Copy,
default fn before_response_write(
_raw: &T,
ctx: &mut ServerContext<'_>
) -> Result<(), ResultCode>
default fn after_response_write(
raw: &T,
ctx: &mut ServerContext<'_>
) -> Result<(), ResultCode>
sourceimpl<T> ResponseCommandParameter<T> for T where
T: Copy,
impl<T> ResponseCommandParameter<T> for T where
T: Copy,
default fn after_response_read(
walker: &mut DataWalker,
_ctx: &mut CommandContext
) -> Result<T, ResultCode>
impl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more