#[repr(C)]pub struct GCExtendedGamepadSnapshotData {Show 19 fields
pub version: u16,
pub size: u16,
pub dpadX: c_float,
pub dpadY: c_float,
pub buttonA: c_float,
pub buttonB: c_float,
pub buttonX: c_float,
pub buttonY: c_float,
pub leftShoulder: c_float,
pub rightShoulder: c_float,
pub leftThumbstickX: c_float,
pub leftThumbstickY: c_float,
pub rightThumbstickX: c_float,
pub rightThumbstickY: c_float,
pub leftTrigger: c_float,
pub rightTrigger: c_float,
pub supportsClickableThumbsticks: Bool,
pub leftThumbstickButton: Bool,
pub rightThumbstickButton: Bool,
}
Available on crate feature
GCExtendedGamepadSnapshot
only.Expand description
Fields§
§version: u16
§size: u16
§dpadX: c_float
§dpadY: c_float
§leftShoulder: c_float
§rightShoulder: c_float
§leftThumbstickX: c_float
§leftThumbstickY: c_float
§rightThumbstickX: c_float
§rightThumbstickY: c_float
§leftTrigger: c_float
§rightTrigger: c_float
§supportsClickableThumbsticks: Bool
§leftThumbstickButton: Bool
§rightThumbstickButton: Bool
Implementations§
Source§impl GCExtendedGamepadSnapshotData
impl GCExtendedGamepadSnapshotData
Sourcepub unsafe fn from_ns_data(
snapshot_data: *mut GCExtendedGamepadSnapshotData,
data: Option<&NSData>,
) -> bool
👎Deprecated: Use the -[GCController controllerWithExtendedGamepad] method instead
pub unsafe fn from_ns_data( snapshot_data: *mut GCExtendedGamepadSnapshotData, data: Option<&NSData>, ) -> bool
Fills out a snapshot from any compatible NSData source
Returns: NO if data is nil, snapshotData is nil or the contents of data does not contain a compatible snapshot. YES for all other cases.
Trait Implementations§
Source§impl Clone for GCExtendedGamepadSnapshotData
impl Clone for GCExtendedGamepadSnapshotData
Source§fn clone(&self) -> GCExtendedGamepadSnapshotData
fn clone(&self) -> GCExtendedGamepadSnapshotData
Returns a duplicate 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 moreSource§impl PartialEq for GCExtendedGamepadSnapshotData
impl PartialEq for GCExtendedGamepadSnapshotData
Source§fn eq(&self, other: &GCExtendedGamepadSnapshotData) -> bool
fn eq(&self, other: &GCExtendedGamepadSnapshotData) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl RefEncode for GCExtendedGamepadSnapshotData
impl RefEncode for GCExtendedGamepadSnapshotData
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for GCExtendedGamepadSnapshotData
impl StructuralPartialEq for GCExtendedGamepadSnapshotData
Auto Trait Implementations§
impl Freeze for GCExtendedGamepadSnapshotData
impl RefUnwindSafe for GCExtendedGamepadSnapshotData
impl Send for GCExtendedGamepadSnapshotData
impl Sync for GCExtendedGamepadSnapshotData
impl Unpin for GCExtendedGamepadSnapshotData
impl UnwindSafe for GCExtendedGamepadSnapshotData
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§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.