pub enum PadMode {
Disconnected,
Digital,
Analog,
Config,
Unknown,
}Expand description
Controller operating mode inferred from the poll ID byte.
Variants§
Disconnected
No controller answered the poll.
Digital
SCPH-1080 digital-pad shape: ID 0x41, buttons only.
Analog
DualShock analog shape: ID 0x73, buttons plus stick bytes.
Config
DualShock config/escape shape: ID 0xF3.
Unknown
A controller answered with an ID this SDK does not classify yet.
Implementations§
Source§impl PadMode
impl PadMode
Sourcepub const fn is_connected(self) -> bool
pub const fn is_connected(self) -> bool
true when a controller answered the poll.
Sourcepub const fn has_sticks(self) -> bool
pub const fn has_sticks(self) -> bool
true when the controller is currently reporting stick bytes.
Trait Implementations§
impl Copy for PadMode
impl Eq for PadMode
impl StructuralPartialEq for PadMode
Auto Trait Implementations§
impl Freeze for PadMode
impl RefUnwindSafe for PadMode
impl Send for PadMode
impl Sync for PadMode
impl Unpin for PadMode
impl UnsafeUnpin for PadMode
impl UnwindSafe for PadMode
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)