Contents

addTouchpad(descriptor:)

Creates a new touchpad control with the provided descriptor, and adds it to the touch controller.

Declaration

func addTouchpad(descriptor: TCTouchpadDescriptor) -> TCTouchpad

Parameters

  • descriptor:

    The TCTouchpadDescriptor containing the configuration for the touchpad.

Return Value

A new TCTouchpad instance.

See Also

Adding a touchpad control