#[repr(C)]pub struct SceCtrlData {
pub timestamp: u32,
pub buttons: CtrlButtons,
pub lx: u8,
pub ly: u8,
pub rsrv: [u8; 6],
}Expand description
Returned controller data
Fields§
§timestamp: u32The current read frame.
Bit mask containing zero or more of CtrlButtons.
lx: u8Analogue stick, X axis.
ly: u8Analogue stick, Y axis.
rsrv: [u8; 6]Reserved.
Trait Implementations§
Source§impl Clone for SceCtrlData
impl Clone for SceCtrlData
Source§fn clone(&self) -> SceCtrlData
fn clone(&self) -> SceCtrlData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SceCtrlData
impl Debug for SceCtrlData
Source§impl Default for SceCtrlData
impl Default for SceCtrlData
Source§fn default() -> SceCtrlData
fn default() -> SceCtrlData
Returns the “default value” for a type. Read more
impl Copy for SceCtrlData
Auto Trait Implementations§
impl Freeze for SceCtrlData
impl RefUnwindSafe for SceCtrlData
impl Send for SceCtrlData
impl Sync for SceCtrlData
impl Unpin for SceCtrlData
impl UnwindSafe for SceCtrlData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more