Struct windows::Gaming::Input::Preview::LegacyGipGameControllerProvider
pub struct LegacyGipGameControllerProvider(/* private fields */);
Implementations§
§impl LegacyGipGameControllerProvider
impl LegacyGipGameControllerProvider
pub fn BatteryChargingState(&self) -> Result<GameControllerBatteryChargingState>
pub fn BatteryKind(&self) -> Result<GameControllerBatteryKind>
pub fn BatteryLevel(&self) -> Result<GameControllerBatteryLevel>
pub fn GetDeviceFirmwareCorruptionState( &self, ) -> Result<GameControllerFirmwareCorruptReason>
pub fn IsFirmwareCorrupted(&self) -> Result<bool>
pub fn IsInterfaceSupported(&self, interfaceid: GUID) -> Result<bool>
pub fn IsSyntheticDevice(&self) -> Result<bool>
pub fn PreferredTypes(&self) -> Result<IVectorView<HSTRING>>
pub fn ExecuteCommand(&self, command: DeviceCommand) -> Result<()>
pub fn SetHomeLedIntensity(&self, intensity: u8) -> Result<()>
pub fn GetExtendedDeviceInfo(&self) -> Result<Array<u8>>
pub fn SetHeadsetOperation( &self, operation: HeadsetOperation, buffer: &[u8], ) -> Result<()>
pub fn GetHeadsetOperation( &self, operation: HeadsetOperation, ) -> Result<Array<u8>>
pub fn AppCompatVersion(&self) -> Result<u32>
pub fn SetStandardControllerButtonRemapping<P0, P1>( &self, user: P0, previous: bool, remapping: P1, ) -> Result<()>
pub fn GetStandardControllerButtonRemapping<P0>(
&self,
user: P0,
previous: bool,
) -> Result<IMapView<RemappingButtonCategory, IInspectable>>where
P0: Param<User>,
pub fn FromGameController<P0>(
controller: P0,
) -> Result<LegacyGipGameControllerProvider>where
P0: Param<IGameController>,
pub fn FromGameControllerProvider<P0>(
provider: P0,
) -> Result<LegacyGipGameControllerProvider>where
P0: Param<IGameControllerProvider>,
pub fn PairPilotToCopilot<P0>(
user: P0,
pilotcontrollerproviderid: &HSTRING,
copilotcontrollerproviderid: &HSTRING,
) -> Result<()>where
P0: Param<User>,
pub fn ClearPairing<P0>(user: P0, controllerproviderid: &HSTRING) -> Result<()>where
P0: Param<User>,
pub fn IsPilot<P0>(user: P0, controllerproviderid: &HSTRING) -> Result<HSTRING>where
P0: Param<User>,
pub fn IsCopilot<P0>(
user: P0,
controllerproviderid: &HSTRING,
) -> Result<HSTRING>where
P0: Param<User>,
Trait Implementations§
§impl CanInto<IInspectable> for LegacyGipGameControllerProvider
impl CanInto<IInspectable> for LegacyGipGameControllerProvider
§impl CanInto<IUnknown> for LegacyGipGameControllerProvider
impl CanInto<IUnknown> for LegacyGipGameControllerProvider
§impl Clone for LegacyGipGameControllerProvider
impl Clone for LegacyGipGameControllerProvider
§fn clone(&self) -> LegacyGipGameControllerProvider
fn clone(&self) -> LegacyGipGameControllerProvider
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for LegacyGipGameControllerProvider
impl Debug for LegacyGipGameControllerProvider
§impl From<&LegacyGipGameControllerProvider> for &IInspectable
impl From<&LegacyGipGameControllerProvider> for &IInspectable
§fn from(value: &LegacyGipGameControllerProvider) -> Self
fn from(value: &LegacyGipGameControllerProvider) -> Self
Converts to this type from the input type.
§impl From<&LegacyGipGameControllerProvider> for &IUnknown
impl From<&LegacyGipGameControllerProvider> for &IUnknown
§fn from(value: &LegacyGipGameControllerProvider) -> Self
fn from(value: &LegacyGipGameControllerProvider) -> Self
Converts to this type from the input type.
§impl From<LegacyGipGameControllerProvider> for IInspectable
impl From<LegacyGipGameControllerProvider> for IInspectable
§fn from(value: LegacyGipGameControllerProvider) -> Self
fn from(value: LegacyGipGameControllerProvider) -> Self
Converts to this type from the input type.
§impl From<LegacyGipGameControllerProvider> for IUnknown
impl From<LegacyGipGameControllerProvider> for IUnknown
§fn from(value: LegacyGipGameControllerProvider) -> Self
fn from(value: LegacyGipGameControllerProvider) -> Self
Converts to this type from the input type.
§impl Interface for LegacyGipGameControllerProvider
impl Interface for LegacyGipGameControllerProvider
§const IID: GUID = <ILegacyGipGameControllerProvider as windows_core::Interface>::IID
const IID: GUID = <ILegacyGipGameControllerProvider as windows_core::Interface>::IID
The
GUID
associated with the interface.§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for LegacyGipGameControllerProvider
impl PartialEq for LegacyGipGameControllerProvider
§fn eq(&self, other: &LegacyGipGameControllerProvider) -> bool
fn eq(&self, other: &LegacyGipGameControllerProvider) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for LegacyGipGameControllerProvider
impl Send for LegacyGipGameControllerProvider
impl StructuralPartialEq for LegacyGipGameControllerProvider
impl Sync for LegacyGipGameControllerProvider
Auto Trait Implementations§
impl Freeze for LegacyGipGameControllerProvider
impl RefUnwindSafe for LegacyGipGameControllerProvider
impl Unpin for LegacyGipGameControllerProvider
impl UnwindSafe for LegacyGipGameControllerProvider
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)