pub struct PadState {
pub buttons: ButtonState,
pub mode: PadMode,
pub sticks: AnalogSticks,
pub id_low: u8,
}Expand description
Result of one controller poll.
Fields§
Active-high button state.
mode: PadModeInferred controller mode.
sticks: AnalogSticksStick bytes. Centred when the controller is not reporting sticks.
id_low: u8Raw low ID byte returned by the controller.
Implementations§
Trait Implementations§
impl Copy for PadState
impl Eq for PadState
impl StructuralPartialEq for PadState
Auto Trait Implementations§
impl Freeze for PadState
impl RefUnwindSafe for PadState
impl Send for PadState
impl Sync for PadState
impl Unpin for PadState
impl UnsafeUnpin for PadState
impl UnwindSafe for PadState
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)