Instance Property

handlerQueue

The dispatch queue to be used when the values of a game controller’s input values change.

Declaration

var handlerQueue: DispatchQueue { get set }

Discussion

When a controller’s input values change, if there are any value-changed handlers associated with the controller’s profile objects, those handlers are called. The value of this property determines which queue those callbacks are sent on.

By default, callbacks are made on the main dispatch queue. You typically change this value when your game’s input logic is handled on an alternate thread. You should change the value of the handlerQueue property only when there are no handlers associated with the controller; typically, you perform this step once, after your game first acquires a controller object.