Structure

GCGamepadSnapShotDataV100

A structure that holds a snapshot of a gamepad controller’s input data.

Declaration

typedef struct {
    ...
} GCGamepadSnapShotDataV100;

Topics

Instance Properties

buttonA

The value of the A button. The range of permissible values is 0.0 to 1.0, inclusive.

buttonB

The value of the B button. The range of permissible values is 0.0 to 1.0, inclusive.

buttonX

The value of the X button. The range of permissible values is 0.0 to 1.0, inclusive.

buttonY

The value of the Y button. The range of permissible values is 0.0 to 1.0, inclusive.

dpadX

The value of the horizontal axis of the dpad. The range of permissible values is -1.0 to 1.0, inclusive.

dpadY

The value of the vertical axis of the dpad. The range of permissible values is -1.0 to 1.0, inclusive.

leftShoulder

The value of the left shoulder button. The range of permissible values is 0.0 to 1.0, inclusive.

rightShoulder

The value of the right shoulder button. The range of permissible values is 0.0 to 1.0, inclusive.

size

The size of the recorded structure, in bytes.

version

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

NSDataFromGCGamepadSnapShotDataV100

Encapsulates the controller data from a gamepad structure into an NSData object.

Deprecated
GCGamepadSnapShotDataV100FromNSData

Copies the recorded data from a gamepad snapshot into a readable structure.

Deprecated