One Logo Pool Ball
Graphics and Games · IOS API REFERENCE

GameController

Support hardware game controllers in your game.

147 types

931 callable entries

43 skipped

96% entry coverage

Generated from iOS SDK 27.1. Availability is shown on each declaration; permissions and entitlements still apply.

Types

GCAcceleration

struct · iOS 8.0+

GCAxis2DInput

protocol · iOS 17.4+

GCAxisElement

protocol · iOS 16.0+

GCAxisElementName

struct · iOS 16.0+

GCAxisElementName.PhysicalInputElement

typealias · iOS 17.0+

GCAxisElementName.RawValue

typealias · iOS 16.0+

GCAxisInput

protocol · iOS 16.0+

GCButtonElement

protocol · iOS 16.0+

GCButtonElementName

struct · iOS 16.0+

GCButtonElementName.PhysicalInputElement

typealias · iOS 17.0+

GCButtonElementName.RawValue

typealias · iOS 16.0+

GCColor

class · iOS 14.0+

GCController

class · iOS 7.0+

GCController.DidBecomeCurrentMessage

struct · iOS 26.0+

GCController.DidBecomeCurrentMessage.Subject

typealias · iOS 26.0+

GCController.DidConnectMessage

struct · iOS 26.0+

GCController.DidConnectMessage.Subject

typealias · iOS 26.0+

GCController.DidDisconnectMessage

struct · iOS 26.0+

GCController.DidDisconnectMessage.Subject

typealias · iOS 26.0+

GCController.DidStopBeingCurrentMessage

struct · iOS 26.0+

GCController.DidStopBeingCurrentMessage.Subject

typealias · iOS 26.0+

GCControllerAxisInput

class · iOS 7.0+

GCControllerAxisValueChangedHandler

typealias · iOS 7.0+

GCControllerButtonInput

class · iOS 7.0+

GCControllerButtonTouchedChangedHandler

typealias · iOS 14.0+

GCControllerButtonValueChangedHandler

typealias · iOS 7.0+

GCControllerDirectionPad

class · iOS 7.0+

GCControllerDirectionPadValueChangedHandler

typealias · iOS 7.0+

GCControllerElement

class · iOS 7.0+

GCControllerElement.SystemGestureState

enum · iOS 14.0+

GCControllerHomeButtonSettingCustomizationStatus

enum · iOS 27.0+

GCControllerHomeButtonSettingInAppAction

enum · iOS 27.0+

GCControllerHomeButtonSettingsCustomizationActivity

enum · iOS 27.0+

GCControllerHomeButtonSettingsManager

class · iOS 27.0+

GCControllerHomeButtonSettingsManager.InAppAction

typealias · iOS 27.0+

GCControllerHomeButtonSettingsManager.SettingCustomizationStatus

typealias · iOS 27.0+

GCControllerHomeButtonSettingsManager.SettingsCustomizationActivity

typealias · iOS 27.0+

GCControllerHomeButtonSettingsManager.SystemAction

typealias · iOS 27.0+

GCControllerHomeButtonSettingSystemAction

enum · iOS 27.0+

GCControllerInputState

class · iOS 17.0+

GCControllerLiveInput

class · iOS 17.0+

GCControllerPlayerIndex

enum · iOS 7.0+

GCControllerTouchpad

class · iOS 13.0+

GCControllerTouchpad.TouchState

enum · iOS 13.0+

GCControllerTouchpadHandler

typealias · iOS 13.0+

GCDevice

protocol · iOS 14.0+

GCDeviceAxisInput

typealias

GCDeviceBattery

class · iOS 14.0+

GCDeviceBattery.State

enum · iOS 14.0+

GCDeviceButtonInput

typealias

GCDeviceCursor

class · iOS 14.0+

GCDeviceDirectionPad

typealias

GCDeviceElement

typealias

GCDeviceHaptics

class · iOS 14.0+

GCDeviceLight

class · iOS 14.0+

GCDevicePhysicalInput

protocol · iOS 16.0+

GCDevicePhysicalInputElementChange

enum · iOS 16.0+

GCDevicePhysicalInputState

protocol · iOS 16.0+

GCDevicePhysicalInputStateDiff

protocol · iOS 16.0+

GCDeviceTouchpad

typealias

GCDirectionalGamepad

class · iOS 14.3+

GCDirectionPadElement

protocol · iOS 16.0+

GCDirectionPadElementName

struct · iOS 16.0+

GCDirectionPadElementName.PhysicalInputElement

typealias · iOS 17.0+

GCDirectionPadElementName.RawValue

typealias · iOS 16.0+

GCDualSenseAdaptiveTrigger

class · iOS 14.5+

GCDualSenseAdaptiveTrigger.Mode

enum · iOS 14.5+

GCDualSenseAdaptiveTrigger.PositionalAmplitudes

struct · iOS 15.4+

GCDualSenseAdaptiveTrigger.PositionalResistiveStrengths

struct · iOS 15.4+

GCDualSenseAdaptiveTrigger.Status

enum · iOS 14.5+

GCDualSenseGamepad

class · iOS 14.5+

GCDualShockGamepad

class · iOS 14.0+

GCEulerAngles

struct · iOS 8.0+

GCEventInteraction

class · iOS 18.0+

GCEventViewController

class · iOS 9.0+

GCExtendedGamepad

class · iOS 7.0+

GCExtendedGamepadSnapshot

class · iOS 7.0+ · Deprecated in iOS 13.0

GCExtendedGamepadSnapshotData

struct · iOS 13.0+ · Deprecated in iOS 13.0

GCExtendedGamepadSnapShotDataV100

struct · iOS 7.0+ · Deprecated in iOS 13.0

GCExtendedGamepadSnapshotDataVersion

enum · iOS 13.0+ · Deprecated in iOS 13.0

GCExtendedGamepadValueChangedHandler

typealias · iOS 7.0+

GCGameControllerActivationContext

class · iOS 18.0+

GCGameControllerSceneDelegate

protocol · iOS 18.0+

GCGamepad

class · iOS 7.0+ · Deprecated in iOS 10.0

GCGamepadSnapshot

class · iOS 7.0+ · Deprecated in iOS 13.0

GCGamepadSnapShotDataV100

struct · iOS 7.0+ · Deprecated in iOS 13.0

GCGamepadValueChangedHandler

typealias · iOS 7.0+

GCHapticsLocality

struct · iOS 14.0+

GCKeyboard

class · iOS 14.0+

GCKeyboard.DidConnectMessage

struct · iOS 26.0+

GCKeyboard.DidConnectMessage.Subject

typealias · iOS 26.0+

GCKeyboard.DidDisconnectMessage

struct · iOS 26.0+

GCKeyboard.DidDisconnectMessage.Subject

typealias · iOS 26.0+

GCKeyboardInput

class · iOS 14.0+

GCKeyboardValueChangedHandler

typealias · iOS 14.0+

GCKeyCode

struct · iOS 14.0+

GCLinearInput

protocol · iOS 16.0+

GCMicroGamepad

class · iOS 9.0+

GCMicroGamepadSnapshot

class · iOS 9.0+ · Deprecated in iOS 13.0

GCMicroGamepadSnapshotData

struct · iOS 13.0+ · Deprecated in iOS 13.0

GCMicroGamepadSnapShotDataV100

struct · iOS 9.0+ · Deprecated in iOS 13.0

GCMicroGamepadSnapshotDataVersion

enum · iOS 13.0+ · Deprecated in iOS 13.0

GCMicroGamepadValueChangedHandler

typealias · iOS 9.0+

GCMotion

class · iOS 8.0+

GCMotionValueChangedHandler

typealias · iOS 8.0+

GCMouse

class · iOS 14.0+

GCMouse.DidBecomeCurrentMessage

struct · iOS 26.0+

GCMouse.DidBecomeCurrentMessage.Subject

typealias · iOS 26.0+

GCMouse.DidConnectMessage

struct · iOS 26.0+

GCMouse.DidConnectMessage.Subject

typealias · iOS 26.0+

GCMouse.DidDisconnectMessage

struct · iOS 26.0+

GCMouse.DidDisconnectMessage.Subject

typealias · iOS 26.0+

GCMouse.DidStopBeingCurrentMessage

struct · iOS 26.0+

GCMouse.DidStopBeingCurrentMessage.Subject

typealias · iOS 26.0+

GCMouseInput

class · iOS 14.0+

GCMouseMoved

typealias · iOS 14.0+

GCPhysicalInputElement

protocol · iOS 16.0+

GCPhysicalInputElementCollection

struct · iOS 16.0+

GCPhysicalInputElementCollection.Element

typealias · iOS 16.0+

GCPhysicalInputElementCollection.Index

struct · iOS 16.0+

GCPhysicalInputElementCollection.Indices

typealias · iOS 16.0+

GCPhysicalInputElementCollection.Iterator

typealias · iOS 16.0+

GCPhysicalInputElementCollection.SubSequence

typealias · iOS 16.0+

GCPhysicalInputElementName

struct · iOS 16.0+

GCPhysicalInputElementName.PhysicalInputElement

typealias · iOS 17.0+

GCPhysicalInputElementName.RawValue

typealias · iOS 16.0+

GCPhysicalInputElementTypedName

protocol · iOS 17.0+

GCPhysicalInputExtents

protocol · iOS 26.2+

GCPhysicalInputProfile

class · iOS 14.0+

GCPhysicalInputSource

protocol · iOS 17.0+

GCPhysicalInputSourceDirection

struct · iOS 17.0+

GCPoint2

struct · iOS 17.4+

GCPressedStateInput

protocol · iOS 16.0+

GCQuaternion

struct · iOS 8.0+

GCRelativeInput

protocol · iOS 16.0+

GCRotationRate

struct · iOS 8.0+

GCSwitchElement

protocol · iOS 16.0+

GCSwitchElementName

struct · iOS 16.0+

GCSwitchElementName.PhysicalInputElement

typealias · iOS 17.0+

GCSwitchElementName.RawValue

typealias · iOS 16.0+

GCSwitchPositionInput

protocol · iOS 16.0+

GCTouchedStateInput

protocol · iOS 16.0+

GCUIEventTypes

struct · iOS 18.0+

GCVirtualController

class · iOS 15.0+

GCVirtualController.Configuration

class · iOS 15.0+

GCVirtualController.ElementConfiguration

class · iOS 15.0+

GCXboxGamepad

class · iOS 14.0+

Functions and constants

function · iOS 7.0+ · Deprecated in iOS 13.0

GCExtendedGamepadSnapShotDataV100FromNSData

TypeScript
GCExtendedGamepadSnapShotDataV100FromNSData(snapshotData?: (SDKHandle) | null, data?: (ArrayBuffer) | null): boolean
Swift declaration
func GCExtendedGamepadSnapShotDataV100FromNSData(_ snapshotData: UnsafeMutablePointer<GCExtendedGamepadSnapShotDataV100>?, _ data: Data?) -> Bool
function · iOS 13.0+ · Deprecated in iOS 13.0

GCExtendedGamepadSnapshotDataFromNSData

TypeScript
GCExtendedGamepadSnapshotDataFromNSData(snapshotData?: (SDKHandle) | null, data?: (ArrayBuffer) | null): boolean
Swift declaration
func GCExtendedGamepadSnapshotDataFromNSData(_ snapshotData: UnsafeMutablePointer<GCExtendedGamepadSnapshotData>?, _ data: Data?) -> Bool
function · iOS 7.0+ · Deprecated in iOS 13.0

GCGamepadSnapShotDataV100FromNSData

TypeScript
GCGamepadSnapShotDataV100FromNSData(snapshotData?: (SDKHandle) | null, data?: (ArrayBuffer) | null): boolean
Swift declaration
func GCGamepadSnapShotDataV100FromNSData(_ snapshotData: UnsafeMutablePointer<GCGamepadSnapShotDataV100>?, _ data: Data?) -> Bool
function · iOS 9.0+ · Deprecated in iOS 13.0

GCMicroGamepadSnapShotDataV100FromNSData

TypeScript
GCMicroGamepadSnapShotDataV100FromNSData(snapshotData?: (SDKHandle) | null, data?: (ArrayBuffer) | null): boolean
Swift declaration
func GCMicroGamepadSnapShotDataV100FromNSData(_ snapshotData: UnsafeMutablePointer<GCMicroGamepadSnapShotDataV100>?, _ data: Data?) -> Bool
function · iOS 13.0+ · Deprecated in iOS 13.0

GCMicroGamepadSnapshotDataFromNSData

TypeScript
GCMicroGamepadSnapshotDataFromNSData(snapshotData?: (SDKHandle) | null, data?: (ArrayBuffer) | null): boolean
Swift declaration
func GCMicroGamepadSnapshotDataFromNSData(_ snapshotData: UnsafeMutablePointer<GCMicroGamepadSnapshotData>?, _ data: Data?) -> Bool
function · iOS 17.4+

GCPoint2Equal

TypeScript
GCPoint2Equal(point1: GCPoint2, point2: GCPoint2): boolean
Swift declaration
func GCPoint2Equal(_ point1: GCPoint2, _ point2: GCPoint2) -> Bool
function · iOS 17.4+

GCPoint2Make

TypeScript
GCPoint2Make(x: number, y: number): GCPoint2
Swift declaration
func GCPoint2Make(_ x: Float, _ y: Float) -> GCPoint2
function · iOS 7.0+ · Deprecated in iOS 13.0

NSDataFromGCExtendedGamepadSnapShotDataV100

TypeScript
NSDataFromGCExtendedGamepadSnapShotDataV100(snapshotData?: (SDKHandle) | null): (ArrayBuffer) | null
Swift declaration
func NSDataFromGCExtendedGamepadSnapShotDataV100(_ snapshotData: UnsafeMutablePointer<GCExtendedGamepadSnapShotDataV100>?) -> Data?
function · iOS 13.0+ · Deprecated in iOS 13.0

NSDataFromGCExtendedGamepadSnapshotData

TypeScript
NSDataFromGCExtendedGamepadSnapshotData(snapshotData?: (SDKHandle) | null): (ArrayBuffer) | null
Swift declaration
func NSDataFromGCExtendedGamepadSnapshotData(_ snapshotData: UnsafeMutablePointer<GCExtendedGamepadSnapshotData>?) -> Data?
function · iOS 7.0+ · Deprecated in iOS 13.0

NSDataFromGCGamepadSnapShotDataV100

TypeScript
NSDataFromGCGamepadSnapShotDataV100(snapshotData?: (SDKHandle) | null): (ArrayBuffer) | null
Swift declaration
func NSDataFromGCGamepadSnapShotDataV100(_ snapshotData: UnsafeMutablePointer<GCGamepadSnapShotDataV100>?) -> Data?
function · iOS 9.0+ · Deprecated in iOS 13.0

NSDataFromGCMicroGamepadSnapShotDataV100

TypeScript
NSDataFromGCMicroGamepadSnapShotDataV100(snapshotData?: (SDKHandle) | null): (ArrayBuffer) | null
Swift declaration
func NSDataFromGCMicroGamepadSnapShotDataV100(_ snapshotData: UnsafeMutablePointer<GCMicroGamepadSnapShotDataV100>?) -> Data?
function · iOS 13.0+ · Deprecated in iOS 13.0

NSDataFromGCMicroGamepadSnapshotData

TypeScript
NSDataFromGCMicroGamepadSnapshotData(snapshotData?: (SDKHandle) | null): (ArrayBuffer) | null
Swift declaration
func NSDataFromGCMicroGamepadSnapshotData(_ snapshotData: UnsafeMutablePointer<GCMicroGamepadSnapshotData>?) -> Data?
function · iOS 17.4+

NSStringFromGCPoint2

TypeScript
NSStringFromGCPoint2(point: GCPoint2): string
Swift declaration
func NSStringFromGCPoint2(_ point: GCPoint2) -> String
get · iOS 14.0+

GCControllerDidBecomeCurrent

TypeScript
get GCControllerDidBecomeCurrent(): _Foundation_NSNotification_Name
Swift declaration
static let GCControllerDidBecomeCurrent: NSNotification.Name
get · iOS 7.0+

GCControllerDidConnect

TypeScript
get GCControllerDidConnect(): _Foundation_NSNotification_Name
Swift declaration
static let GCControllerDidConnect: NSNotification.Name
get · iOS 7.0+

GCControllerDidDisconnect

TypeScript
get GCControllerDidDisconnect(): _Foundation_NSNotification_Name
Swift declaration
static let GCControllerDidDisconnect: NSNotification.Name
get · iOS 14.0+

GCControllerDidStopBeingCurrent

TypeScript
get GCControllerDidStopBeingCurrent(): _Foundation_NSNotification_Name
Swift declaration
static let GCControllerDidStopBeingCurrent: NSNotification.Name
get · iOS 16.0+

GCControllerUserCustomizationsDidChange

TypeScript
get GCControllerUserCustomizationsDidChange(): _Foundation_NSNotification_Name
Swift declaration
static let GCControllerUserCustomizationsDidChange: NSNotification.Name
get · iOS 9.0+ · Deprecated in iOS 13.0

GCCurrentExtendedGamepadSnapshotDataVersion

TypeScript
const GCCurrentExtendedGamepadSnapshotDataVersion: GCExtendedGamepadSnapshotDataVersion
Swift declaration
let GCCurrentExtendedGamepadSnapshotDataVersion: GCExtendedGamepadSnapshotDataVersion
get · iOS 13.0+ · Deprecated in iOS 13.0

GCCurrentMicroGamepadSnapshotDataVersion

TypeScript
const GCCurrentMicroGamepadSnapshotDataVersion: GCMicroGamepadSnapshotDataVersion
Swift declaration
let GCCurrentMicroGamepadSnapshotDataVersion: GCMicroGamepadSnapshotDataVersion
get · iOS 14.0+

GCHapticDurationInfinite

TypeScript
const GCHapticDurationInfinite: number
Swift declaration
let GCHapticDurationInfinite: Float
get · iOS 14.5+

GCInputDirectionalCardinalDpad

TypeScript
const GCInputDirectionalCardinalDpad: string
Swift declaration
let GCInputDirectionalCardinalDpad: String
get · iOS 15.0+

GCInputDirectionalCenterButton

TypeScript
const GCInputDirectionalCenterButton: string
Swift declaration
let GCInputDirectionalCenterButton: String
get · iOS 14.5+

GCInputDirectionalDpad

TypeScript
const GCInputDirectionalDpad: string
Swift declaration
let GCInputDirectionalDpad: String
get · iOS 15.0+

GCInputDirectionalTouchSurfaceButton

TypeScript
const GCInputDirectionalTouchSurfaceButton: string
Swift declaration
let GCInputDirectionalTouchSurfaceButton: String
get · iOS 15.0+

GCInputMicroGamepadButtonA

TypeScript
const GCInputMicroGamepadButtonA: string
Swift declaration
let GCInputMicroGamepadButtonA: String
get · iOS 15.0+

GCInputMicroGamepadButtonMenu

TypeScript
const GCInputMicroGamepadButtonMenu: string
Swift declaration
let GCInputMicroGamepadButtonMenu: String
get · iOS 15.0+

GCInputMicroGamepadButtonX

TypeScript
const GCInputMicroGamepadButtonX: string
Swift declaration
let GCInputMicroGamepadButtonX: String
get · iOS 15.0+

GCInputMicroGamepadDpad

TypeScript
const GCInputMicroGamepadDpad: string
Swift declaration
let GCInputMicroGamepadDpad: String
get · iOS 14.0+

GCKeyA

TypeScript
const GCKeyA: string
Swift declaration
let GCKeyA: String
get · iOS 14.0+

GCKeyApplication

TypeScript
const GCKeyApplication: string
Swift declaration
let GCKeyApplication: String
get · iOS 14.0+

GCKeyB

TypeScript
const GCKeyB: string
Swift declaration
let GCKeyB: String
get · iOS 14.0+

GCKeyBackslash

TypeScript
const GCKeyBackslash: string
Swift declaration
let GCKeyBackslash: String
get · iOS 14.0+

GCKeyC

TypeScript
const GCKeyC: string
Swift declaration
let GCKeyC: String
get · iOS 14.0+

GCKeyCapsLock

TypeScript
const GCKeyCapsLock: string
Swift declaration
let GCKeyCapsLock: String
get · iOS 14.0+

GCKeyCloseBracket

TypeScript
const GCKeyCloseBracket: string
Swift declaration
let GCKeyCloseBracket: String
get · iOS 14.0+

GCKeyComma

TypeScript
const GCKeyComma: string
Swift declaration
let GCKeyComma: String
get · iOS 14.0+

GCKeyD

TypeScript
const GCKeyD: string
Swift declaration
let GCKeyD: String
get · iOS 14.0+

GCKeyDeleteForward

TypeScript
const GCKeyDeleteForward: string
Swift declaration
let GCKeyDeleteForward: String
get · iOS 14.0+

GCKeyDeleteOrBackspace

TypeScript
const GCKeyDeleteOrBackspace: string
Swift declaration
let GCKeyDeleteOrBackspace: String
get · iOS 14.0+

GCKeyDownArrow

TypeScript
const GCKeyDownArrow: string
Swift declaration
let GCKeyDownArrow: String
get · iOS 14.0+

GCKeyE

TypeScript
const GCKeyE: string
Swift declaration
let GCKeyE: String
get · iOS 14.0+

GCKeyEight

TypeScript
const GCKeyEight: string
Swift declaration
let GCKeyEight: String
get · iOS 14.0+

GCKeyEnd

TypeScript
const GCKeyEnd: string
Swift declaration
let GCKeyEnd: String
get · iOS 14.0+

GCKeyEqualSign

TypeScript
const GCKeyEqualSign: string
Swift declaration
let GCKeyEqualSign: String
get · iOS 14.0+

GCKeyEscape

TypeScript
const GCKeyEscape: string
Swift declaration
let GCKeyEscape: String
get · iOS 14.0+

GCKeyF10

TypeScript
const GCKeyF10: string
Swift declaration
let GCKeyF10: String
get · iOS 14.0+

GCKeyF11

TypeScript
const GCKeyF11: string
Swift declaration
let GCKeyF11: String
get · iOS 14.0+

GCKeyF12

TypeScript
const GCKeyF12: string
Swift declaration
let GCKeyF12: String
get · iOS 15.0+

GCKeyF13

TypeScript
const GCKeyF13: string
Swift declaration
let GCKeyF13: String
get · iOS 15.0+

GCKeyF14

TypeScript
const GCKeyF14: string
Swift declaration
let GCKeyF14: String
get · iOS 15.0+

GCKeyF15

TypeScript
const GCKeyF15: string
Swift declaration
let GCKeyF15: String
get · iOS 15.0+

GCKeyF16

TypeScript
const GCKeyF16: string
Swift declaration
let GCKeyF16: String
get · iOS 15.0+

GCKeyF17

TypeScript
const GCKeyF17: string
Swift declaration
let GCKeyF17: String
get · iOS 15.0+

GCKeyF18

TypeScript
const GCKeyF18: string
Swift declaration
let GCKeyF18: String
get · iOS 15.0+

GCKeyF19

TypeScript
const GCKeyF19: string
Swift declaration
let GCKeyF19: String
get · iOS 14.0+

GCKeyF1

TypeScript
const GCKeyF1: string
Swift declaration
let GCKeyF1: String
get · iOS 15.0+

GCKeyF20

TypeScript
const GCKeyF20: string
Swift declaration
let GCKeyF20: String
get · iOS 14.0+

GCKeyF2

TypeScript
const GCKeyF2: string
Swift declaration
let GCKeyF2: String
get · iOS 14.0+

GCKeyF3

TypeScript
const GCKeyF3: string
Swift declaration
let GCKeyF3: String
get · iOS 14.0+

GCKeyF4

TypeScript
const GCKeyF4: string
Swift declaration
let GCKeyF4: String
get · iOS 14.0+

GCKeyF5

TypeScript
const GCKeyF5: string
Swift declaration
let GCKeyF5: String
get · iOS 14.0+

GCKeyF6

TypeScript
const GCKeyF6: string
Swift declaration
let GCKeyF6: String
get · iOS 14.0+

GCKeyF7

TypeScript
const GCKeyF7: string
Swift declaration
let GCKeyF7: String
get · iOS 14.0+

GCKeyF8

TypeScript
const GCKeyF8: string
Swift declaration
let GCKeyF8: String
get · iOS 14.0+

GCKeyF9

TypeScript
const GCKeyF9: string
Swift declaration
let GCKeyF9: String
get · iOS 14.0+

GCKeyF

TypeScript
const GCKeyF: string
Swift declaration
let GCKeyF: String
get · iOS 14.0+

GCKeyFive

TypeScript
const GCKeyFive: string
Swift declaration
let GCKeyFive: String
get · iOS 14.0+

GCKeyFour

TypeScript
const GCKeyFour: string
Swift declaration
let GCKeyFour: String
get · iOS 14.0+

GCKeyG

TypeScript
const GCKeyG: string
Swift declaration
let GCKeyG: String
get · iOS 14.0+

GCKeyGraveAccentAndTilde

TypeScript
const GCKeyGraveAccentAndTilde: string
Swift declaration
let GCKeyGraveAccentAndTilde: String
get · iOS 14.0+

GCKeyH

TypeScript
const GCKeyH: string
Swift declaration
let GCKeyH: String
get · iOS 14.0+

GCKeyHome

TypeScript
const GCKeyHome: string
Swift declaration
let GCKeyHome: String
get · iOS 14.0+

GCKeyHyphen

TypeScript
const GCKeyHyphen: string
Swift declaration
let GCKeyHyphen: String
get · iOS 14.0+

GCKeyI

TypeScript
const GCKeyI: string
Swift declaration
let GCKeyI: String
get · iOS 14.0+

GCKeyInsert

TypeScript
const GCKeyInsert: string
Swift declaration
let GCKeyInsert: String
get · iOS 14.0+

GCKeyInternational1

TypeScript
const GCKeyInternational1: string
Swift declaration
let GCKeyInternational1: String
get · iOS 14.0+

GCKeyInternational2

TypeScript
const GCKeyInternational2: string
Swift declaration
let GCKeyInternational2: String
get · iOS 14.0+

GCKeyInternational3

TypeScript
const GCKeyInternational3: string
Swift declaration
let GCKeyInternational3: String
get · iOS 14.0+

GCKeyInternational4

TypeScript
const GCKeyInternational4: string
Swift declaration
let GCKeyInternational4: String
get · iOS 14.0+

GCKeyInternational5

TypeScript
const GCKeyInternational5: string
Swift declaration
let GCKeyInternational5: String
get · iOS 14.0+

GCKeyInternational6

TypeScript
const GCKeyInternational6: string
Swift declaration
let GCKeyInternational6: String
get · iOS 14.0+

GCKeyInternational7

TypeScript
const GCKeyInternational7: string
Swift declaration
let GCKeyInternational7: String
get · iOS 14.0+

GCKeyInternational8

TypeScript
const GCKeyInternational8: string
Swift declaration
let GCKeyInternational8: String
get · iOS 14.0+

GCKeyInternational9

TypeScript
const GCKeyInternational9: string
Swift declaration
let GCKeyInternational9: String
get · iOS 14.0+

GCKeyJ

TypeScript
const GCKeyJ: string
Swift declaration
let GCKeyJ: String
get · iOS 14.0+

GCKeyK

TypeScript
const GCKeyK: string
Swift declaration
let GCKeyK: String
get · iOS 14.0+

GCKeyKeypad0

TypeScript
const GCKeyKeypad0: string
Swift declaration
let GCKeyKeypad0: String
get · iOS 14.0+

GCKeyKeypad1

TypeScript
const GCKeyKeypad1: string
Swift declaration
let GCKeyKeypad1: String
get · iOS 14.0+

GCKeyKeypad2

TypeScript
const GCKeyKeypad2: string
Swift declaration
let GCKeyKeypad2: String
get · iOS 14.0+

GCKeyKeypad3

TypeScript
const GCKeyKeypad3: string
Swift declaration
let GCKeyKeypad3: String
get · iOS 14.0+

GCKeyKeypad4

TypeScript
const GCKeyKeypad4: string
Swift declaration
let GCKeyKeypad4: String
get · iOS 14.0+

GCKeyKeypad5

TypeScript
const GCKeyKeypad5: string
Swift declaration
let GCKeyKeypad5: String
get · iOS 14.0+

GCKeyKeypad6

TypeScript
const GCKeyKeypad6: string
Swift declaration
let GCKeyKeypad6: String
get · iOS 14.0+

GCKeyKeypad7

TypeScript
const GCKeyKeypad7: string
Swift declaration
let GCKeyKeypad7: String
get · iOS 14.0+

GCKeyKeypad8

TypeScript
const GCKeyKeypad8: string
Swift declaration
let GCKeyKeypad8: String
get · iOS 14.0+

GCKeyKeypad9

TypeScript
const GCKeyKeypad9: string
Swift declaration
let GCKeyKeypad9: String
get · iOS 14.0+

GCKeyKeypadAsterisk

TypeScript
const GCKeyKeypadAsterisk: string
Swift declaration
let GCKeyKeypadAsterisk: String
get · iOS 14.0+

GCKeyKeypadEnter

TypeScript
const GCKeyKeypadEnter: string
Swift declaration
let GCKeyKeypadEnter: String
get · iOS 14.0+

GCKeyKeypadEqualSign

TypeScript
const GCKeyKeypadEqualSign: string
Swift declaration
let GCKeyKeypadEqualSign: String
get · iOS 14.0+

GCKeyKeypadHyphen

TypeScript
const GCKeyKeypadHyphen: string
Swift declaration
let GCKeyKeypadHyphen: String
get · iOS 14.0+

GCKeyKeypadNumLock

TypeScript
const GCKeyKeypadNumLock: string
Swift declaration
let GCKeyKeypadNumLock: String
get · iOS 14.0+

GCKeyKeypadPeriod

TypeScript
const GCKeyKeypadPeriod: string
Swift declaration
let GCKeyKeypadPeriod: String
get · iOS 14.0+

GCKeyKeypadPlus

TypeScript
const GCKeyKeypadPlus: string
Swift declaration
let GCKeyKeypadPlus: String
get · iOS 14.0+

GCKeyKeypadSlash

TypeScript
const GCKeyKeypadSlash: string
Swift declaration
let GCKeyKeypadSlash: String
get · iOS 14.0+

GCKeyL

TypeScript
const GCKeyL: string
Swift declaration
let GCKeyL: String
get · iOS 14.0+

GCKeyLANG1

TypeScript
const GCKeyLANG1: string
Swift declaration
let GCKeyLANG1: String
get · iOS 14.0+

GCKeyLANG2

TypeScript
const GCKeyLANG2: string
Swift declaration
let GCKeyLANG2: String
get · iOS 14.0+

GCKeyLANG3

TypeScript
const GCKeyLANG3: string
Swift declaration
let GCKeyLANG3: String
get · iOS 14.0+

GCKeyLANG4

TypeScript
const GCKeyLANG4: string
Swift declaration
let GCKeyLANG4: String
get · iOS 14.0+

GCKeyLANG5

TypeScript
const GCKeyLANG5: string
Swift declaration
let GCKeyLANG5: String
get · iOS 14.0+

GCKeyLANG6

TypeScript
const GCKeyLANG6: string
Swift declaration
let GCKeyLANG6: String
get · iOS 14.0+

GCKeyLANG7

TypeScript
const GCKeyLANG7: string
Swift declaration
let GCKeyLANG7: String
get · iOS 14.0+

GCKeyLANG8

TypeScript
const GCKeyLANG8: string
Swift declaration
let GCKeyLANG8: String
get · iOS 14.0+

GCKeyLANG9

TypeScript
const GCKeyLANG9: string
Swift declaration
let GCKeyLANG9: String
get · iOS 14.0+

GCKeyLeftAlt

TypeScript
const GCKeyLeftAlt: string
Swift declaration
let GCKeyLeftAlt: String
get · iOS 14.0+

GCKeyLeftArrow

TypeScript
const GCKeyLeftArrow: string
Swift declaration
let GCKeyLeftArrow: String
get · iOS 14.0+

GCKeyLeftControl

TypeScript
const GCKeyLeftControl: string
Swift declaration
let GCKeyLeftControl: String
get · iOS 14.0+

GCKeyLeftGUI

TypeScript
const GCKeyLeftGUI: string
Swift declaration
let GCKeyLeftGUI: String
get · iOS 14.0+

GCKeyLeftShift

TypeScript
const GCKeyLeftShift: string
Swift declaration
let GCKeyLeftShift: String
get · iOS 14.0+

GCKeyM

TypeScript
const GCKeyM: string
Swift declaration
let GCKeyM: String
get · iOS 14.0+

GCKeyN

TypeScript
const GCKeyN: string
Swift declaration
let GCKeyN: String
get · iOS 14.0+

GCKeyNine

TypeScript
const GCKeyNine: string
Swift declaration
let GCKeyNine: String
get · iOS 14.0+

GCKeyNonUSBackslash

TypeScript
const GCKeyNonUSBackslash: string
Swift declaration
let GCKeyNonUSBackslash: String
get · iOS 14.0+

GCKeyNonUSPound

TypeScript
const GCKeyNonUSPound: string
Swift declaration
let GCKeyNonUSPound: String
get · iOS 14.0+

GCKeyO

TypeScript
const GCKeyO: string
Swift declaration
let GCKeyO: String
get · iOS 14.0+

GCKeyOne

TypeScript
const GCKeyOne: string
Swift declaration
let GCKeyOne: String
get · iOS 14.0+

GCKeyOpenBracket

TypeScript
const GCKeyOpenBracket: string
Swift declaration
let GCKeyOpenBracket: String
get · iOS 14.0+

GCKeyP

TypeScript
const GCKeyP: string
Swift declaration
let GCKeyP: String
get · iOS 14.0+

GCKeyPageDown

TypeScript
const GCKeyPageDown: string
Swift declaration
let GCKeyPageDown: String
get · iOS 14.0+

GCKeyPageUp

TypeScript
const GCKeyPageUp: string
Swift declaration
let GCKeyPageUp: String
get · iOS 14.0+

GCKeyPause

TypeScript
const GCKeyPause: string
Swift declaration
let GCKeyPause: String
get · iOS 14.0+

GCKeyPeriod

TypeScript
const GCKeyPeriod: string
Swift declaration
let GCKeyPeriod: String
get · iOS 14.0+

GCKeyPower

TypeScript
const GCKeyPower: string
Swift declaration
let GCKeyPower: String
get · iOS 14.0+

GCKeyPrintScreen

TypeScript
const GCKeyPrintScreen: string
Swift declaration
let GCKeyPrintScreen: String
get · iOS 14.0+

GCKeyQ

TypeScript
const GCKeyQ: string
Swift declaration
let GCKeyQ: String
get · iOS 14.0+

GCKeyQuote

TypeScript
const GCKeyQuote: string
Swift declaration
let GCKeyQuote: String
get · iOS 14.0+

GCKeyR

TypeScript
const GCKeyR: string
Swift declaration
let GCKeyR: String
get · iOS 14.0+

GCKeyReturnOrEnter

TypeScript
const GCKeyReturnOrEnter: string
Swift declaration
let GCKeyReturnOrEnter: String
get · iOS 14.0+

GCKeyRightAlt

TypeScript
const GCKeyRightAlt: string
Swift declaration
let GCKeyRightAlt: String
get · iOS 14.0+

GCKeyRightArrow

TypeScript
const GCKeyRightArrow: string
Swift declaration
let GCKeyRightArrow: String
get · iOS 14.0+

GCKeyRightControl

TypeScript
const GCKeyRightControl: string
Swift declaration
let GCKeyRightControl: String
get · iOS 14.0+

GCKeyRightGUI

TypeScript
const GCKeyRightGUI: string
Swift declaration
let GCKeyRightGUI: String
get · iOS 14.0+

GCKeyRightShift

TypeScript
const GCKeyRightShift: string
Swift declaration
let GCKeyRightShift: String
get · iOS 14.0+

GCKeyS

TypeScript
const GCKeyS: string
Swift declaration
let GCKeyS: String
get · iOS 14.0+

GCKeyScrollLock

TypeScript
const GCKeyScrollLock: string
Swift declaration
let GCKeyScrollLock: String
get · iOS 14.0+

GCKeySemicolon

TypeScript
const GCKeySemicolon: string
Swift declaration
let GCKeySemicolon: String
get · iOS 14.0+

GCKeySeven

TypeScript
const GCKeySeven: string
Swift declaration
let GCKeySeven: String
get · iOS 14.0+

GCKeySix

TypeScript
const GCKeySix: string
Swift declaration
let GCKeySix: String
get · iOS 14.0+

GCKeySlash

TypeScript
const GCKeySlash: string
Swift declaration
let GCKeySlash: String
get · iOS 14.0+

GCKeySpacebar

TypeScript
const GCKeySpacebar: string
Swift declaration
let GCKeySpacebar: String
get · iOS 14.0+

GCKeyT

TypeScript
const GCKeyT: string
Swift declaration
let GCKeyT: String
get · iOS 14.0+

GCKeyTab

TypeScript
const GCKeyTab: string
Swift declaration
let GCKeyTab: String
get · iOS 14.0+

GCKeyThree

TypeScript
const GCKeyThree: string
Swift declaration
let GCKeyThree: String
get · iOS 14.0+

GCKeyTwo

TypeScript
const GCKeyTwo: string
Swift declaration
let GCKeyTwo: String
get · iOS 14.0+

GCKeyU

TypeScript
const GCKeyU: string
Swift declaration
let GCKeyU: String
get · iOS 14.0+

GCKeyUpArrow

TypeScript
const GCKeyUpArrow: string
Swift declaration
let GCKeyUpArrow: String
get · iOS 14.0+

GCKeyV

TypeScript
const GCKeyV: string
Swift declaration
let GCKeyV: String
get · iOS 14.0+

GCKeyW

TypeScript
const GCKeyW: string
Swift declaration
let GCKeyW: String
get · iOS 14.0+

GCKeyX

TypeScript
const GCKeyX: string
Swift declaration
let GCKeyX: String
get · iOS 14.0+

GCKeyY

TypeScript
const GCKeyY: string
Swift declaration
let GCKeyY: String
get · iOS 14.0+

GCKeyZ

TypeScript
const GCKeyZ: string
Swift declaration
let GCKeyZ: String
get · iOS 14.0+

GCKeyZero

TypeScript
const GCKeyZero: string
Swift declaration
let GCKeyZero: String
get · iOS 14.0+

GCKeyboardDidConnect

TypeScript
get GCKeyboardDidConnect(): _Foundation_NSNotification_Name
Swift declaration
static let GCKeyboardDidConnect: NSNotification.Name
get · iOS 14.0+

GCKeyboardDidDisconnect

TypeScript
get GCKeyboardDidDisconnect(): _Foundation_NSNotification_Name
Swift declaration
static let GCKeyboardDidDisconnect: NSNotification.Name
get · iOS 14.0+

GCMouseDidBecomeCurrent

TypeScript
get GCMouseDidBecomeCurrent(): _Foundation_NSNotification_Name
Swift declaration
static let GCMouseDidBecomeCurrent: NSNotification.Name
get · iOS 14.0+

GCMouseDidConnect

TypeScript
get GCMouseDidConnect(): _Foundation_NSNotification_Name
Swift declaration
static let GCMouseDidConnect: NSNotification.Name
get · iOS 14.0+

GCMouseDidDisconnect

TypeScript
get GCMouseDidDisconnect(): _Foundation_NSNotification_Name
Swift declaration
static let GCMouseDidDisconnect: NSNotification.Name
get · iOS 14.0+

GCMouseDidStopBeingCurrent

TypeScript
get GCMouseDidStopBeingCurrent(): _Foundation_NSNotification_Name
Swift declaration
static let GCMouseDidStopBeingCurrent: NSNotification.Name
get · iOS 17.4+

GCPoint2Zero

TypeScript
const GCPoint2Zero: GCPoint2
Swift declaration
let GCPoint2Zero: GCPoint2
get · iOS 17.0+

GCProductCategoryArcadeStick

TypeScript
const GCProductCategoryArcadeStick: string
Swift declaration
let GCProductCategoryArcadeStick: String
get · iOS 15.0+

GCProductCategoryCoalescedRemote

TypeScript
const GCProductCategoryCoalescedRemote: string
Swift declaration
let GCProductCategoryCoalescedRemote: String
get · iOS 15.0+

GCProductCategoryControlCenterRemote

TypeScript
const GCProductCategoryControlCenterRemote: string
Swift declaration
let GCProductCategoryControlCenterRemote: String
get · iOS 15.0+

GCProductCategoryDualSense

TypeScript
const GCProductCategoryDualSense: string
Swift declaration
let GCProductCategoryDualSense: String
get · iOS 15.0+

GCProductCategoryDualShock4

TypeScript
const GCProductCategoryDualShock4: string
Swift declaration
let GCProductCategoryDualShock4: String
get · iOS 16.0+

GCProductCategoryHID

TypeScript
const GCProductCategoryHID: string
Swift declaration
let GCProductCategoryHID: String
get · iOS 15.0+

GCProductCategoryKeyboard

TypeScript
const GCProductCategoryKeyboard: string
Swift declaration
let GCProductCategoryKeyboard: String
get · iOS 15.0+

GCProductCategoryMFi

TypeScript
const GCProductCategoryMFi: string
Swift declaration
let GCProductCategoryMFi: String
get · iOS 15.0+

GCProductCategoryMouse

TypeScript
const GCProductCategoryMouse: string
Swift declaration
let GCProductCategoryMouse: String
get · iOS 15.0+

GCProductCategorySiriRemote1stGen

TypeScript
const GCProductCategorySiriRemote1stGen: string
Swift declaration
let GCProductCategorySiriRemote1stGen: String
get · iOS 15.0+

GCProductCategorySiriRemote2ndGen

TypeScript
const GCProductCategorySiriRemote2ndGen: string
Swift declaration
let GCProductCategorySiriRemote2ndGen: String
get · iOS 26.0+

GCProductCategorySpatialController

TypeScript
const GCProductCategorySpatialController: string
Swift declaration
let GCProductCategorySpatialController: String
get · iOS 15.0+

GCProductCategoryUniversalElectronicsRemote

TypeScript
const GCProductCategoryUniversalElectronicsRemote: string
Swift declaration
let GCProductCategoryUniversalElectronicsRemote: String
get · iOS 15.0+

GCProductCategoryXboxOne

TypeScript
const GCProductCategoryXboxOne: string
Swift declaration
let GCProductCategoryXboxOne: String
get

kIOHIDGCSyntheticDeviceKey

TypeScript
const kIOHIDGCSyntheticDeviceKey: string
Swift declaration
var kIOHIDGCSyntheticDeviceKey: String { get }
init · iOS 17.4+

init

TypeScript
static init(point: GCPoint2): _Foundation_NSValue
Swift declaration
convenience init(GCPoint2 point: GCPoint2)
get · iOS 17.4+

gcPoint2Value

TypeScript
get gcPoint2Value(): GCPoint2
Swift declaration
var gcPoint2Value: GCPoint2 { get }
get · iOS 18.0+

gameControllerActivationContext

TypeScript
get gameControllerActivationContext(): Promise<(GCGameControllerActivationContext) | null>
Swift declaration
var gameControllerActivationContext: GCGameControllerActivationContext? { get }
get · iOS 14.0+

GCInputButtonA

TypeScript
const GCInputButtonA: string
Swift declaration
var GCInputButtonA: String { get }
get · iOS 14.0+

GCInputButtonB

TypeScript
const GCInputButtonB: string
Swift declaration
var GCInputButtonB: String { get }
get · iOS 14.0+

GCInputButtonX

TypeScript
const GCInputButtonX: string
Swift declaration
var GCInputButtonX: String { get }
get · iOS 14.0+

GCInputButtonY

TypeScript
const GCInputButtonY: string
Swift declaration
var GCInputButtonY: String { get }
get · iOS 14.0+

GCInputButtonHome

TypeScript
const GCInputButtonHome: string
Swift declaration
var GCInputButtonHome: String { get }
get · iOS 14.0+

GCInputButtonMenu

TypeScript
const GCInputButtonMenu: string
Swift declaration
var GCInputButtonMenu: String { get }
get · iOS 15.0+

GCInputButtonShare

TypeScript
const GCInputButtonShare: string
Swift declaration
var GCInputButtonShare: String { get }
get · iOS 14.0+

GCInputLeftTrigger

TypeScript
const GCInputLeftTrigger: string
Swift declaration
var GCInputLeftTrigger: String { get }
get · iOS 14.0+

GCInputDirectionPad

TypeScript
const GCInputDirectionPad: string
Swift declaration
var GCInputDirectionPad: String { get }
get · iOS 14.0+

GCInputLeftShoulder

TypeScript
const GCInputLeftShoulder: string
Swift declaration
var GCInputLeftShoulder: String { get }
get · iOS 14.0+

GCInputRightTrigger

TypeScript
const GCInputRightTrigger: string
Swift declaration
var GCInputRightTrigger: String { get }
get · iOS 14.0+

GCInputButtonOptions

TypeScript
const GCInputButtonOptions: string
Swift declaration
var GCInputButtonOptions: String { get }
get · iOS 14.0+

GCInputRightShoulder

TypeScript
const GCInputRightShoulder: string
Swift declaration
var GCInputRightShoulder: String { get }
get · iOS 14.0+

GCInputXboxPaddleOne

TypeScript
const GCInputXboxPaddleOne: string
Swift declaration
var GCInputXboxPaddleOne: String { get }
get · iOS 14.0+

GCInputXboxPaddleTwo

TypeScript
const GCInputXboxPaddleTwo: string
Swift declaration
var GCInputXboxPaddleTwo: String { get }
get · iOS 14.0+

GCInputLeftThumbstick

TypeScript
const GCInputLeftThumbstick: string
Swift declaration
var GCInputLeftThumbstick: String { get }
get · iOS 14.0+

GCInputXboxPaddleFour

TypeScript
const GCInputXboxPaddleFour: string
Swift declaration
var GCInputXboxPaddleFour: String { get }
get · iOS 14.0+

GCInputRightThumbstick

TypeScript
const GCInputRightThumbstick: string
Swift declaration
var GCInputRightThumbstick: String { get }
get · iOS 14.0+

GCInputXboxPaddleThree

TypeScript
const GCInputXboxPaddleThree: string
Swift declaration
var GCInputXboxPaddleThree: String { get }
get · iOS 14.0+

GCInputDualShockTouchpadOne

TypeScript
const GCInputDualShockTouchpadOne: string
Swift declaration
var GCInputDualShockTouchpadOne: String { get }
get · iOS 14.0+

GCInputDualShockTouchpadTwo

TypeScript
const GCInputDualShockTouchpadTwo: string
Swift declaration
var GCInputDualShockTouchpadTwo: String { get }
get · iOS 14.0+

GCInputLeftThumbstickButton

TypeScript
const GCInputLeftThumbstickButton: string
Swift declaration
var GCInputLeftThumbstickButton: String { get }
get · iOS 14.0+

GCInputRightThumbstickButton

TypeScript
const GCInputRightThumbstickButton: string
Swift declaration
var GCInputRightThumbstickButton: String { get }
get · iOS 14.0+

GCInputDualShockTouchpadButton

TypeScript
const GCInputDualShockTouchpadButton: string
Swift declaration
var GCInputDualShockTouchpadButton: String { get }
get · iOS 16.0+

startIndex

TypeScript
get startIndex(): GCPhysicalInputElementCollection_Index<SDKHandle>
Swift declaration
var startIndex: GCPhysicalInputElementCollection<T>.Index { get }

The position of the first element in a nonempty collection. If the collection is empty, `startIndex` is equal to `endIndex`.

method · iOS 16.0+

index

TypeScript
index(i: GCPhysicalInputElementCollection_Index<SDKHandle>): GCPhysicalInputElementCollection_Index<SDKHandle>
Swift declaration
func index(after i: GCPhysicalInputElementCollection<T>.Index) -> GCPhysicalInputElementCollection<T>.Index

Returns the position immediately after the given index. The successor of an index must be well defined. For an index `i` into a collection `c`, calling `c.index(after: i)` returns the same index every time. - Parameter i: A valid index of the collection. `i` must be less than `endIndex`. - Returns: The index value immediately after `i`.

get · iOS 16.0+

endIndex

TypeScript
get endIndex(): GCPhysicalInputElementCollection_Index<SDKHandle>
Swift declaration
var endIndex: GCPhysicalInputElementCollection<T>.Index { get }

The collection's "past the end" position---that is, the position one greater than the last valid subscript argument. When you need a range that includes the last element of a collection, use the half-open range operator (`..<`) with `endIndex`. The `..<` operator creates a range that doesn't include the upper bound, so it's always safe to use with `endIndex`. For example: let numbers = [10, 20, 30, 40, 50] if let index = numbers.firstIndex(of: 30) { print(numbers[index ..< numbers.endIndex]) } // Prints "[30, 40, 50]" If the collection is empty, `endIndex` is equal to `startIndex`.

subscript · iOS 16.0+

subscript

TypeScript
subscript(elementName: GCDirectionPadElementName): (SDKHandle) | null
Swift declaration
subscript(elementName: GCDirectionPadElementName) -> T? { get }
subscript · iOS 16.0+

subscript

TypeScript
subscript89440(elementName: GCAxisElementName): (SDKHandle) | null
Swift declaration
subscript(elementName: GCAxisElementName) -> T? { get }
subscript · iOS 16.0+

subscript

TypeScript
subscript20909(elementName: GCButtonElementName): (SDKHandle) | null
Swift declaration
subscript(elementName: GCButtonElementName) -> T? { get }
subscript · iOS 16.0+

subscript

TypeScript
subscript52213(elementName: GCSwitchElementName): (SDKHandle) | null
Swift declaration
subscript(elementName: GCSwitchElementName) -> T? { get }
subscript · iOS 16.0+

subscript

TypeScript
subscript28148(elementName: GCPhysicalInputElementName): (SDKHandle) | null
Swift declaration
subscript(elementName: GCPhysicalInputElementName) -> T? { get }
subscript · iOS 16.0+

subscript

TypeScript
subscript73322(position: GCPhysicalInputElementCollection_Index<SDKHandle>): SDKHandle
Swift declaration
subscript(position: GCPhysicalInputElementCollection<T>.Index) -> GCPhysicalInputElementCollection<T>.Element { get }

Accesses the element at the specified position. The following example accesses an element of an array through its subscript to print its value: var streets = ["Adams", "Bryant", "Channing", "Douglas", "Evarts"] print(streets[1]) // Prints "Bryant" You can subscript a collection with any valid index other than the collection's end index. The end index refers to the position one past the last element of a collection, so it doesn't correspond with an element. - Parameter position: The position of the element to access. `position` must be a valid index of the collection that is not equal to the `endIndex` property. - Complexity: O(1)

Skipped declarations

43 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

NotificationCenter.MessageIdentifier.didConnect

Static protocol requirements cannot be called through an instance.

NotificationCenter.MessageIdentifier.didDisconnect

Static protocol requirements cannot be called through an instance.

NotificationCenter.MessageIdentifier.didBecomeCurrent

Static protocol requirements cannot be called through an instance.

NotificationCenter.MessageIdentifier.didStopBeingCurrent

Static protocol requirements cannot be called through an instance.

NotificationCenter.MessageIdentifier.didConnect

Static protocol requirements cannot be called through an instance.

NotificationCenter.MessageIdentifier.didDisconnect

Static protocol requirements cannot be called through an instance.

NotificationCenter.MessageIdentifier.didConnect

Static protocol requirements cannot be called through an instance.

NotificationCenter.MessageIdentifier.didDisconnect

Static protocol requirements cannot be called through an instance.

NotificationCenter.MessageIdentifier.didBecomeCurrent

Static protocol requirements cannot be called through an instance.

NotificationCenter.MessageIdentifier.didStopBeingCurrent

Static protocol requirements cannot be called through an instance.

GCPhysicalInputElementCollection.subscript(_:)

This declaration needs Swift generic type arguments. (no canonical witness for T)

GCPhysicalInputElementCollection.subscript(_:)

This declaration needs Swift generic type arguments. (no canonical witness for Name)

GCPhysicalInputElementCollection.subscript(_:)

This declaration needs Swift generic type arguments. (no canonical witness for Name)

GCControllerHomeButtonSettingsManager.init(_:)

The iOS SDK compiler rejected this binding: call to actor-isolated initializer 'init(_:)' in a synchronous nonisolated context [#ActorIsolatedCall]

GCVirtualController.updateConfiguration(forElement:configuration:)

callback cannot propagate synchronous failure

GCDeviceHaptics.createEngine(withLocality:)

The iOS SDK compiler rejected this binding: value of type 'GCDeviceHaptics' has no member 'createEngine'

GCDeviceLight.init()

inherited init: clang: 'init' is unavailable

GCGamepadSnapshot.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

GCColor.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

GCMicroGamepadSnapshot.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

GCGameControllerActivationContext.init()

inherited init: clang: 'init' is unavailable

GCExtendedGamepadSnapshot.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

GCVirtualController.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

GCDeviceBattery.init()

inherited init: clang: 'init' is unavailable

protocol implementation GCPhysicalInputElementTypedName

This protocol needs associated types that cannot yet cross the bridge.

protocol implementation GCSwitchPositionInput

non-method protocol requirement

protocol implementation GCLinearInput

non-method protocol requirement

protocol implementation GCDevice

non-method protocol requirement

protocol implementation GCTouchedStateInput

non-method protocol requirement

protocol implementation GCSwitchElement

non-method protocol requirement