GCControllerLiveInput
The input profile for a controller.
Declaration
class GCControllerLiveInputMentioned in
Overview
Instances of GCControllerLiveInput represent the current input state of a controller. You can save snapshots of the input state and receive callbacks when the input state changes. You can also get the elements of the controller and their current input values from GCControllerLiveInput instances.
Use the capture() method to save a copy of the current input state. If you want Game Controller to buffer snapshots of the input states for you, use the inputStateQueueDepth property to set the buffer’s queue depth to a value other than 0. Then use the nextInputState() method to get the snapshots when you’re ready to process input.