One Logo Pool Ball
TouchController · IOS API REFERENCE

TCTouchController

class · iOS 26.0+ · SDK 27.1

class TCTouchController

Members (32)

get · iOS 26.0+

isSupported

TypeScript
static get isSupported(): boolean
Swift declaration
class var isSupported: Bool { get }
method · iOS 26.0+

addButton

TypeScript
addButton(descriptor: TCButtonDescriptor): TCButton
Swift declaration
func addButton(descriptor: TCButtonDescriptor) -> TCButton
method · iOS 26.0+

addDirectionPad

TypeScript
addDirectionPad(descriptor: TCDirectionPadDescriptor): TCDirectionPad
Swift declaration
func addDirectionPad(descriptor: TCDirectionPadDescriptor) -> TCDirectionPad
method · iOS 26.0+

addSwitch

TypeScript
addSwitch(descriptor: TCSwitchDescriptor): TCSwitch
Swift declaration
func addSwitch(descriptor: TCSwitchDescriptor) -> TCSwitch
method · iOS 26.0+

addThrottle

TypeScript
addThrottle(descriptor: TCThrottleDescriptor): TCThrottle
Swift declaration
func addThrottle(descriptor: TCThrottleDescriptor) -> TCThrottle
method · iOS 26.0+

addThumbstick

TypeScript
addThumbstick(descriptor: TCThumbstickDescriptor): TCThumbstick
Swift declaration
func addThumbstick(descriptor: TCThumbstickDescriptor) -> TCThumbstick
method · iOS 26.0+

addTouchpad

TypeScript
addTouchpad(descriptor: TCTouchpadDescriptor): TCTouchpad
Swift declaration
func addTouchpad(descriptor: TCTouchpadDescriptor) -> TCTouchpad
method · iOS 26.0+

automaticallyLayoutControls

TypeScript
automaticallyLayoutControls(labels: Array<TCControlLabel>): void
Swift declaration
func automaticallyLayoutControls(for labels: [TCControlLabel])
method · iOS 26.0+

connect

TypeScript
connect(): void
Swift declaration
func connect()
method · iOS 26.0+

control

TypeScript
control(point: { x: number; y: number }): (SDKHandle) | null
Swift declaration
func control(at point: CGPoint) -> (any TCControl)?
method · iOS 26.0+

disconnect

TypeScript
disconnect(): void
Swift declaration
func disconnect()
method · iOS 26.0+

handleTouchBegan

TypeScript
handleTouchBegan(point: { x: number; y: number }, index: number): boolean
Swift declaration
func handleTouchBegan(at point: CGPoint, index: Int) -> Bool
method · iOS 26.0+

handleTouchEnded

TypeScript
handleTouchEnded(point: { x: number; y: number }, index: number): boolean
Swift declaration
func handleTouchEnded(at point: CGPoint, index: Int) -> Bool
method · iOS 26.0+

handleTouchMoved

TypeScript
handleTouchMoved(point: { x: number; y: number }, index: number): boolean
Swift declaration
func handleTouchMoved(at point: CGPoint, index: Int) -> Bool
init · iOS 26.0+

init

TypeScript
static init(descriptor: TCTouchControllerDescriptor): TCTouchController
Swift declaration
init(descriptor: TCTouchControllerDescriptor)
method · iOS 26.0+

removeAllControls

TypeScript
removeAllControls(): void
Swift declaration
func removeAllControls()
method · iOS 26.0+

removeControl

TypeScript
removeControl(control: SDKHandle): void
Swift declaration
func removeControl(_ control: any TCControl)
method · iOS 26.0+

render

TypeScript
render(encoder: SDKHandle): void
Swift declaration
func render(using encoder: any MTLRenderCommandEncoder)
get · iOS 26.0+

buttons

TypeScript
get buttons(): Array<TCButton>
Swift declaration
var buttons: [TCButton] { get }
get · iOS 26.0+

isConnected

TypeScript
get isConnected(): boolean
Swift declaration
var isConnected: Bool { get }
get · iOS 26.0+

controller

TypeScript
get controller(): _GameController_GCController
Swift declaration
var controller: GCController { get }
get · iOS 26.0+

controls

TypeScript
get controls(): Array<SDKHandle>
Swift declaration
var controls: [any TCControl] { get }
get · iOS 26.0+

device

TypeScript
get device(): SDKHandle
Swift declaration
var device: any MTLDevice { get }
get · iOS 26.0+

directionPads

TypeScript
get directionPads(): Array<TCDirectionPad>
Swift declaration
var directionPads: [TCDirectionPad] { get }
get · iOS 26.0+

drawableSize

TypeScript
get drawableSize(): { width: number; height: number }
Swift declaration
var drawableSize: CGSize { get set }
set · iOS 26.0+

drawableSize

TypeScript
set drawableSize(value: { width: number; height: number })
Swift declaration
var drawableSize: CGSize { get set }
get · iOS 26.0+

size

TypeScript
get size(): { width: number; height: number }
Swift declaration
var size: CGSize { get set }
set · iOS 26.0+

size

TypeScript
set size(value: { width: number; height: number })
Swift declaration
var size: CGSize { get set }
get · iOS 26.0+

switches

TypeScript
get switches(): Array<TCSwitch>
Swift declaration
var switches: [TCSwitch] { get }
get · iOS 26.0+

throttles

TypeScript
get throttles(): Array<TCThrottle>
Swift declaration
var throttles: [TCThrottle] { get }
get · iOS 26.0+

thumbsticks

TypeScript
get thumbsticks(): Array<TCThumbstick>
Swift declaration
var thumbsticks: [TCThumbstick] { get }
get · iOS 26.0+

touchpads

TypeScript
get touchpads(): Array<TCTouchpad>
Swift declaration
var touchpads: [TCTouchpad] { get }

Skipped declarations

No declarations were skipped in this snapshot.

All TouchController types →