Controller |
The ControllerPollingInfo type exposes the following members.
Name | Description | |
---|---|---|
![]() | axisPole | The pole of the axis that was activated (+/-). This is only relevant if elementType is Axis. |
![]() | controller | The controller that returned input. |
![]() | controllerId | The id of the controller that returned input. |
![]() | controllerName | The name of the controller that returned input. |
![]() | controllerType | The type of the controller that returned input. |
![]() | elementIdentifier | The controller element identifier that returned input. |
![]() | elementIdentifierId | The id of the element identifier on the controller that returned input. This points back to the human-readable element identifier on a controller such as Left Stick X. This is used when creating an ActionElementMap in a ControllerMap to associate a controller element with an Action. |
![]() | elementIdentifierName | The name of the element identifier on the controller that returned input. This gives you the human-readable name of the element such as Left Stick X -. |
![]() | elementIndex | The index to the controller element that returned input. In combination with controllerType, this can be used to determine the exact button or axis index. |
![]() | elementType | The type of element on the controller that returned input. |
![]() | keyboardKey | The keyboard key that returned input. This is only valid if controllerType is Keyboard. |
![]() | player | The Player that generated this input. This value is only valid if the controller is assigned to a Player and polling was called on or through Player. |
![]() | playerId | The player id that generated this input. This value is only valid if the controller is assigned to a Player and polling was called on or through Player. |
![]() | success | Was user input detected? If false, no user input was detected. |