pub enum PadKind {
Xbox,
PlayStation,
Switch,
SteamDeck,
Generic,
}Expand description
What family a pad is, for the labels a hint shows
(ActionMap::hint). Bindings never read it: buttons are positional.
Variants§
Xbox
An Xbox-layout pad, and anything XInput reports.
PlayStation
A DualShock or DualSense.
Switch
A Switch Pro controller or Joy-Con pair.
SteamDeck
The Steam Deck’s built-in controls.
Generic
Anything the backend could not place.
Trait Implementations§
impl Copy for PadKind
impl Eq for PadKind
impl StructuralPartialEq for PadKind
Auto Trait Implementations§
impl Freeze for PadKind
impl RefUnwindSafe for PadKind
impl Send for PadKind
impl Sync for PadKind
impl Unpin for PadKind
impl UnsafeUnpin for PadKind
impl UnwindSafe for PadKind
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