#[repr(C)]pub struct NpadState {
pub sampling_number: i64,
pub buttons: NpadButton,
pub analog_stick_l: AnalogStickState,
pub analog_stick_r: AnalogStickState,
pub attributes: NpadAttribute,
pub pre_buttons: NpadButton,
}Expand description
Fields§
§sampling_number: i64§analog_stick_l: AnalogStickState§analog_stick_r: AnalogStickState§attributes: NpadAttributeImplementations§
Source§impl NpadState
impl NpadState
GetButton(crate::nn::hid::npadbutton::NpadButton) overload
GetButtonDown(crate::nn::hid::npadbutton::NpadButton) overload
GetButtonUp(crate::nn::hid::npadbutton::NpadButton) overload
Sourcepub fn to_string(&mut self) -> Il2CppString
pub fn to_string(&mut self) -> Il2CppString
ToString() overload
Source§impl NpadState
impl NpadState
pub fn clear_method_info() -> &'static MethodInfo
pub fn to_string_method_info() -> &'static MethodInfo
Trait Implementations§
Source§impl ClassIdentity for NpadState
impl ClassIdentity for NpadState
impl Copy for NpadState
Auto Trait Implementations§
impl Freeze for NpadState
impl RefUnwindSafe for NpadState
impl Send for NpadState
impl Sync for NpadState
impl Unpin for NpadState
impl UnwindSafe for NpadState
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)