elements
The input elements of a virtual controller.
Declaration
var elements: Set<String> { get set }Mentioned in
Discussion
The possible values you can include in this array are the names of the following constants: GCInputButtonA, GCInputButtonB, GCInputButtonX, GCInputButtonY, GCInputDirectionPad, GCInputLeftThumbstick, GCInputRightThumbstick, GCInputLeftShoulder, GCInputRightShoulder, GCInputLeftTrigger, and GCInputRightTrigger.
For example, configure a virtual controller with a left thumb stick, right thumb stick, A button, and B button.
virtualConfiguration.elements = [GCInputLeftThumbstick,GCInputRightThumbstick,GCInputButtonA,GCInputButtonB]