Structure
GCGamepadSnapShotDataV100
A structure that holds a snapshot of a gamepad controller’s input data.
SDKs
- iOS 7.0–13.0Deprecated
- macOS 10.9–10.15Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–13.0Deprecated
Declaration
struct GCGamepadSnapShotDataV100
Topics
Instance Properties
var buttonA: Float
The value of the A button. The range of permissible values is 0.0
to 1.0
, inclusive.
var buttonB: Float
The value of the B button. The range of permissible values is 0.0
to 1.0
, inclusive.
var buttonX: Float
The value of the X button. The range of permissible values is 0.0
to 1.0
, inclusive.
var buttonY: Float
The value of the Y button. The range of permissible values is 0.0
to 1.0
, inclusive.
var dpadX: Float
The value of the horizontal axis of the dpad. The range of permissible values is -1.0
to 1.0
, inclusive.
var dpadY: Float
The value of the vertical axis of the dpad. The range of permissible values is -1.0
to 1.0
, inclusive.
var leftShoulder: Float
The value of the left shoulder button. The range of permissible values is 0.0
to 1.0
, inclusive.
var rightShoulder: Float
The value of the right shoulder button. The range of permissible values is 0.0
to 1.0
, inclusive.
var version: UInt16
A value that indicates the version number of the data structure. For the structure defined here, the Game Controller framework uses a value of 0x0100
.
See Also
Flattening a Snapshot to Memory