#[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
Fields§
§left_trigger: u8
§right_trigger: u8
§thumb_lx: i16
§thumb_ly: i16
§thumb_rx: i16
§thumb_ry: i16
Trait Implementations§
Source§impl AsMut<XINPUT_GAMEPAD> for XGamepad
impl AsMut<XINPUT_GAMEPAD> for XGamepad
Source§fn as_mut(&mut self) -> &mut XINPUT_GAMEPAD
fn as_mut(&mut self) -> &mut XINPUT_GAMEPAD
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<XINPUT_GAMEPAD> for XGamepad
impl AsRef<XINPUT_GAMEPAD> for XGamepad
Source§fn as_ref(&self) -> &XINPUT_GAMEPAD
fn as_ref(&self) -> &XINPUT_GAMEPAD
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl From<XGamepad> for XINPUT_GAMEPAD
impl From<XGamepad> for XINPUT_GAMEPAD
Source§fn from(report: XGamepad) -> XINPUT_GAMEPAD
fn from(report: XGamepad) -> XINPUT_GAMEPAD
Converts to this type from the input type.
Source§impl From<XINPUT_GAMEPAD> for XGamepad
impl From<XINPUT_GAMEPAD> for XGamepad
Source§fn from(gamepad: XINPUT_GAMEPAD) -> Self
fn from(gamepad: XINPUT_GAMEPAD) -> Self
Converts to this type from the input type.
impl Copy for XGamepad
impl Eq for XGamepad
impl StructuralPartialEq for XGamepad
Auto Trait Implementations§
impl Freeze for XGamepad
impl RefUnwindSafe for XGamepad
impl Send for XGamepad
impl Sync for XGamepad
impl Unpin for XGamepad
impl UnwindSafe for XGamepad
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