Class

GCMicroGamepad

The controls provided by the Siri Remote.

Overview

The controls associated with the micro gamepad profile include the following:

  • Two digital face buttons (A and X).

  • One analog directional pad (D-pad), implemented as a touchpad.

Controllers that implement the micro gamepad profile can be used in either landscape or portrait orientations. By default, these devices are usually used in portrait mode.

Topics

Determining the Controller That Owns This Profile

var controller: GCController?

The controller this profile is associated with.

Determining When Any Element in the Profile Changes

var valueChangedHandler: GCMicroGamepadValueChangedHandler?

A block called when any element in the profile changes.

Reading Directional Pad Inputs

var reportsAbsoluteDpadValues: Bool

A Boolean value that indicates whether the D-pad reports absolute or relative values.

var allowsRotation: Bool

A Boolean value that indicates whether the D-pad’s values are calculated relative to its current orientation.

Reading Face Button Inputs

Saving a Snapshot

func saveSnapshot()

Saves a snapshot of all of the profile’s elements.

Constants

typealias GCMicroGamepadValueChangedHandler

Signature for the block executed if any element in the gamepad profile changes value.

Relationships

Inherits From

Conforms To

See Also

Control Profiles

class GCExtendedGamepad

The extended set of gamepad controls.

class GCGamepad

The standard set of gamepad controls.

class GCMotion

The orientation and motion of the controller.