pub struct DevSubType(/* private fields */);Expand description
[microsoft.com] XINPUT_DEVSUBTYPE_*
Subtypes of DevType::Gamepad.
NOTE: “Legacy” XInput (9.1.0 / Windows Vista) will always return DevSubType::Gamepad, regardless of device.
Implementations§
Source§impl DevSubType
impl DevSubType
Sourcepub const fn from_unchecked(d3d: u8) -> Self
pub const fn from_unchecked(d3d: u8) -> Self
Convert from an underlying winapi type.
This is probably safe… probably…
Sourcepub const fn into_inner(self) -> u8
pub const fn into_inner(self) -> u8
Convert back into an underlying winapi type.
Source§impl DevSubType
impl DevSubType
Sourcepub const Unknown: DevSubType
pub const Unknown: DevSubType
An unknown style of Xbox 360 controller.
Sourcepub const Gamepad: DevSubType
pub const Gamepad: DevSubType
A typical Xbox 360 gamepad, or fallback on XInput 9.1.0 / Windows Vista.
Sourcepub const Wheel: DevSubType
pub const Wheel: DevSubType
A wheel (such as the Xbox 360 Wireless Racing Wheel?)
pub const ArcadeStick: DevSubType
pub const FlightStick: DevSubType
Sourcepub const DancePad: DevSubType
pub const DancePad: DevSubType
A dance pad (such as the one provided with DDR and other dancing games?
Sourcepub const Guitar: DevSubType
pub const Guitar: DevSubType
A guitar (such as the one bundled with Guitar Hero or Rock Band?)
Sourcepub const GuitarAlternate: DevSubType
pub const GuitarAlternate: DevSubType
A guitar (such as the one bundled with Guitar Hero or Rock Band?)
Sourcepub const DrumKit: DevSubType
pub const DrumKit: DevSubType
A drum kit (such as the one bundled with Rock Band?)
Sourcepub const GuitarBass: DevSubType
pub const GuitarBass: DevSubType
A bass guitar (such as the one bundled with Guitar Hero or Rock Band?)
pub const ArcadePad: DevSubType
Trait Implementations§
Source§impl Clone for DevSubType
impl Clone for DevSubType
Source§fn clone(&self) -> DevSubType
fn clone(&self) -> DevSubType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DevSubType
impl Debug for DevSubType
Source§impl Default for DevSubType
impl Default for DevSubType
Source§fn default() -> DevSubType
fn default() -> DevSubType
Source§impl From<DevSubType> for u8
impl From<DevSubType> for u8
Source§fn from(value: DevSubType) -> Self
fn from(value: DevSubType) -> Self
Source§impl Hash for DevSubType
impl Hash for DevSubType
Source§impl Ord for DevSubType
impl Ord for DevSubType
Source§fn cmp(&self, other: &DevSubType) -> Ordering
fn cmp(&self, other: &DevSubType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for DevSubType
impl PartialEq for DevSubType
Source§impl PartialOrd for DevSubType
impl PartialOrd for DevSubType
impl Copy for DevSubType
impl Eq for DevSubType
impl Pod for DevSubType
impl StructuralPartialEq for DevSubType
Auto Trait Implementations§
impl Freeze for DevSubType
impl RefUnwindSafe for DevSubType
impl Send for DevSubType
impl Sync for DevSubType
impl Unpin for DevSubType
impl UnwindSafe for DevSubType
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self.