One Logo Pool Ball
GameController · IOS API REFERENCE

GCGamepad

class · iOS 7.0+ · Deprecated in iOS 10.0 · SDK 27.1

class GCGamepad

Members (12)

init

init

TypeScript
static init(): GCGamepad
Swift declaration
init()
method · iOS 7.0+ · Deprecated in iOS 10.0

saveSnapshot

TypeScript
saveSnapshot(): GCGamepadSnapshot
Swift declaration
func saveSnapshot() -> GCGamepadSnapshot
get · iOS 7.0+ · Deprecated in iOS 10.0

buttonA

TypeScript
get buttonA(): GCControllerButtonInput
Swift declaration
var buttonA: GCControllerButtonInput { get }
get · iOS 7.0+ · Deprecated in iOS 10.0

buttonB

TypeScript
get buttonB(): GCControllerButtonInput
Swift declaration
var buttonB: GCControllerButtonInput { get }
get · iOS 7.0+ · Deprecated in iOS 10.0

buttonX

TypeScript
get buttonX(): GCControllerButtonInput
Swift declaration
var buttonX: GCControllerButtonInput { get }
get · iOS 7.0+ · Deprecated in iOS 10.0

buttonY

TypeScript
get buttonY(): GCControllerButtonInput
Swift declaration
var buttonY: GCControllerButtonInput { get }
get · iOS 7.0+ · Deprecated in iOS 10.0

controller

TypeScript
get controller(): (GCController) | null
Swift declaration
weak var controller: GCController? { get }
get · iOS 7.0+ · Deprecated in iOS 10.0

dpad

TypeScript
get dpad(): GCControllerDirectionPad
Swift declaration
var dpad: GCControllerDirectionPad { get }
get · iOS 7.0+ · Deprecated in iOS 10.0

leftShoulder

TypeScript
get leftShoulder(): GCControllerButtonInput
Swift declaration
var leftShoulder: GCControllerButtonInput { get }
get · iOS 7.0+ · Deprecated in iOS 10.0

rightShoulder

TypeScript
get rightShoulder(): GCControllerButtonInput
Swift declaration
var rightShoulder: GCControllerButtonInput { get }
get · iOS 7.0+ · Deprecated in iOS 10.0

valueChangedHandler

TypeScript
get valueChangedHandler(): (((arg0: GCGamepad, arg1: GCControllerElement) => Promise<void>)) | null
Swift declaration
var valueChangedHandler: GCGamepadValueChangedHandler? { get set }
set · iOS 7.0+ · Deprecated in iOS 10.0

valueChangedHandler

TypeScript
set valueChangedHandler(value: (((arg0: GCGamepad, arg1: GCControllerElement) => void)) | null)
Swift declaration
var valueChangedHandler: GCGamepadValueChangedHandler? { get set }

Skipped declarations

No declarations were skipped in this snapshot.

All GameController types →