Struct vigem_client::XGamepad
source · [−]#[repr(C)]pub struct XGamepad {
pub buttons: XButtons,
pub left_trigger: u8,
pub right_trigger: u8,
pub thumb_lx: i16,
pub thumb_ly: i16,
pub thumb_rx: i16,
pub thumb_ry: i16,
}Expand description
Represents an XINPUT_GAMEPAD-compatible report structure.

Fields
left_trigger: u8right_trigger: u8thumb_lx: i16thumb_ly: i16thumb_rx: i16thumb_ry: i16Trait Implementations
sourceimpl AsMut<XINPUT_GAMEPAD> for XGamepad
impl AsMut<XINPUT_GAMEPAD> for XGamepad
sourcefn as_mut(&mut self) -> &mut XINPUT_GAMEPAD
fn as_mut(&mut self) -> &mut XINPUT_GAMEPAD
Performs the conversion.
sourceimpl AsRef<XINPUT_GAMEPAD> for XGamepad
impl AsRef<XINPUT_GAMEPAD> for XGamepad
sourcefn as_ref(&self) -> &XINPUT_GAMEPAD
fn as_ref(&self) -> &XINPUT_GAMEPAD
Performs the conversion.
sourceimpl From<XGamepad> for XINPUT_GAMEPAD
impl From<XGamepad> for XINPUT_GAMEPAD
sourcefn from(report: XGamepad) -> XINPUT_GAMEPAD
fn from(report: XGamepad) -> XINPUT_GAMEPAD
Performs the conversion.
sourceimpl From<XINPUT_GAMEPAD> for XGamepad
impl From<XINPUT_GAMEPAD> for XGamepad
sourcefn from(gamepad: XINPUT_GAMEPAD) -> Self
fn from(gamepad: XINPUT_GAMEPAD) -> Self
Performs the conversion.
impl Copy for XGamepad
impl Eq for XGamepad
impl StructuralEq for XGamepad
impl StructuralPartialEq for XGamepad
Auto Trait Implementations
impl RefUnwindSafe for XGamepad
impl Send for XGamepad
impl Sync for XGamepad
impl Unpin for XGamepad
impl UnwindSafe for XGamepad
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more