| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final Array |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | addListener(ControllerListener controllerListener)
Implements com. Adds a new |
| public void | cancelVibration()
Implements com. Cancel any running vibration. |
| public boolean | |
| public void | dispose()
Implements com. Releases all resources of this object. |
| public int | |
| public boolean | |
| public boolean | |
| protected void | |
| protected void | |
| protected void | |
| public void | removeListener(ControllerListener controllerListener)
Implements com. Removes the given |
| public void | setPlayerIndex(int
0 typically 0 to 3 for player indices, and PLAYER_IDX_UNSET for unset index)Implements com. Sets the player index of this controller. |
| public void | startVibration(int
duration, in milliseconds duration, float value between 0f and 1f strength)Implements com. Starts vibrating this controller, if possible. |
| public boolean |
| connected | back to summary |
|---|---|
| private boolean connected | |
| listeners | back to summary |
|---|---|
| private final Array<ControllerListener> listeners | |
| AbstractController | back to summary |
|---|---|
| pack-priv AbstractController() | |
| addListener | back to summary |
|---|---|
| public void addListener(ControllerListener controllerListener) Implements com. Doc from com. Adds a new
| |
| cancelVibration | back to summary |
|---|---|
| public void cancelVibration() Implements com. Doc from com. Cancel any running vibration. May not be supported by implementations
| |
| canVibrate | back to summary |
|---|---|
| public boolean canVibrate() Implements com.
| |
| dispose | back to summary |
|---|---|
| public void dispose() Implements com. Doc from com. Releases all resources of this object.
| |
| getPlayerIndex | back to summary |
|---|---|
| public int getPlayerIndex() Implements com.
| |
| isConnected | back to summary |
|---|---|
| public boolean isConnected() Implements com.
| |
| isVibrating | back to summary |
|---|---|
| public boolean isVibrating() Implements com.
| |
| notifyListenersAxisMoved | back to summary |
|---|---|
| protected void notifyListenersAxisMoved(int axisNum, float value) | |
| notifyListenersButtonDown | back to summary |
|---|---|
| protected void notifyListenersButtonDown(int button) | |
| notifyListenersButtonUp | back to summary |
|---|---|
| protected void notifyListenersButtonUp(int button) | |
| removeListener | back to summary |
|---|---|
| public void removeListener(ControllerListener controllerListener) Implements com. Doc from com. Removes the given
| |
| setPlayerIndex | back to summary |
|---|---|
| public void setPlayerIndex(int index) Implements com. Doc from com. Sets the player index of this controller. Please note that this does not always set indication lights of controllers, it is just an internal representation on some platforms
| |
| startVibration | back to summary |
|---|---|
| public void startVibration(int duration, float strength) Implements com. Doc from com. Starts vibrating this controller, if possible.
| |
| supportsPlayerIndex | back to summary |
|---|---|
| public boolean supportsPlayerIndex() Implements com.
| |