Struct thindx::xinput::Capabilities
source · [−]#[repr(C)]pub struct Capabilities {
pub ty: DevType,
pub sub_type: DevSubType,
pub flags: Caps,
pub gamepad: Gamepad,
pub vibration: Vibration,
}
Expand description
[docs.microsoft.com] XINPUT_CAPABILITIES
Battery type and charge.
Fields
ty: DevType
Device type (generally always DevType::Gamepad?)
sub_type: DevSubType
Device “sub“type.
NOTE: “Legacy” XInput (9.1.0 / Windows Vista) will always return DevSubType::Gamepad
, regardless of device.
flags: Caps
Capability flags.
gamepad: Gamepad
Describes available features and control resolutions.
vibration: Vibration
Describes available functionality and resolutions.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Capabilities
impl Send for Capabilities
impl Sync for Capabilities
impl Unpin for Capabilities
impl UnwindSafe for Capabilities
Blanket Implementations
Mutably borrows from an owned value. Read more