pub struct InjectedInputGamepadInfo(/* private fields */);
Implementations§
§impl InjectedInputGamepadInfo
impl InjectedInputGamepadInfo
pub fn new() -> Result<Self>
pub fn Buttons(&self) -> Result<GamepadButtons>
pub fn SetButtons(&self, value: GamepadButtons) -> Result<()>
pub fn LeftThumbstickX(&self) -> Result<f64>
pub fn SetLeftThumbstickX(&self, value: f64) -> Result<()>
pub fn LeftThumbstickY(&self) -> Result<f64>
pub fn SetLeftThumbstickY(&self, value: f64) -> Result<()>
pub fn LeftTrigger(&self) -> Result<f64>
pub fn SetLeftTrigger(&self, value: f64) -> Result<()>
pub fn RightThumbstickX(&self) -> Result<f64>
pub fn SetRightThumbstickX(&self, value: f64) -> Result<()>
pub fn RightThumbstickY(&self) -> Result<f64>
pub fn SetRightThumbstickY(&self, value: f64) -> Result<()>
pub fn RightTrigger(&self) -> Result<f64>
pub fn SetRightTrigger(&self, value: f64) -> Result<()>
pub fn CreateInstanceFromGamepadReading( reading: GamepadReading ) -> Result<InjectedInputGamepadInfo>
Trait Implementations§
§impl Clone for InjectedInputGamepadInfo
impl Clone for InjectedInputGamepadInfo
§fn clone(&self) -> InjectedInputGamepadInfo
fn clone(&self) -> InjectedInputGamepadInfo
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 InjectedInputGamepadInfo
impl Debug for InjectedInputGamepadInfo
§impl From<&InjectedInputGamepadInfo> for &IInspectable
impl From<&InjectedInputGamepadInfo> for &IInspectable
§fn from(value: &InjectedInputGamepadInfo) -> Self
fn from(value: &InjectedInputGamepadInfo) -> Self
Converts to this type from the input type.
§impl From<&InjectedInputGamepadInfo> for &IUnknown
impl From<&InjectedInputGamepadInfo> for &IUnknown
§fn from(value: &InjectedInputGamepadInfo) -> Self
fn from(value: &InjectedInputGamepadInfo) -> Self
Converts to this type from the input type.
§impl From<InjectedInputGamepadInfo> for IInspectable
impl From<InjectedInputGamepadInfo> for IInspectable
§fn from(value: InjectedInputGamepadInfo) -> Self
fn from(value: InjectedInputGamepadInfo) -> Self
Converts to this type from the input type.
§impl From<InjectedInputGamepadInfo> for IUnknown
impl From<InjectedInputGamepadInfo> for IUnknown
§fn from(value: InjectedInputGamepadInfo) -> Self
fn from(value: InjectedInputGamepadInfo) -> Self
Converts to this type from the input type.
§impl Interface for InjectedInputGamepadInfo
impl Interface for InjectedInputGamepadInfo
§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§impl PartialEq for InjectedInputGamepadInfo
impl PartialEq for InjectedInputGamepadInfo
§fn eq(&self, other: &InjectedInputGamepadInfo) -> bool
fn eq(&self, other: &InjectedInputGamepadInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for InjectedInputGamepadInfo
impl StructuralPartialEq for InjectedInputGamepadInfo
Auto Trait Implementations§
impl RefUnwindSafe for InjectedInputGamepadInfo
impl !Send for InjectedInputGamepadInfo
impl !Sync for InjectedInputGamepadInfo
impl Unpin for InjectedInputGamepadInfo
impl UnwindSafe for InjectedInputGamepadInfo
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