| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final IntFloatMap | |
| private final IntMap | |
| private Boolean | |
| private static final IntMap | |
| private static final IntMap | |
| private final CompositeControllerListener | |
| private boolean | |
| private static final ControllerAxis[] | |
| private static final ControllerButton[] | |
| private ControllerIndex | |
| private static final Logger | |
| private int | |
| private final String | |
| private final String | |
| private long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addListener(ControllerListener listener)
Implements com. Adds a new |
| public void | cancelVibration()
Implements com. Cancel any running vibration. |
| public boolean | |
| public float | |
| public int | |
| public boolean | |
| private String | |
| public ControllerMapping | |
| public int | |
| public int | |
| public String | |
| public int | |
| public ControllerPowerLevel | |
| public String | |
| private void | |
| public boolean | |
| public boolean | |
| public void | removeListener(ControllerListener listener)
Implements com. Removes the given |
| public void | |
| public void | |
| 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 | |
| private ControllerAxis | |
| private ControllerButton | |
| public boolean | |
| private void | |
| private void |
| axisCount | back to summary |
|---|---|
| private int axisCount | |
| axisState | back to summary |
|---|---|
| private final IntFloatMap axisState | |
| buttonState | back to summary |
|---|---|
| private final IntMap<Boolean> buttonState | |
| canVibrate | back to summary |
|---|---|
| private Boolean canVibrate | |
| CODE_TO_AXIS | back to summary |
|---|---|
| private static final IntMap<ControllerAxis> CODE_TO_AXIS | |
| CODE_TO_BUTTON | back to summary |
|---|---|
| private static final IntMap<ControllerButton> CODE_TO_BUTTON | |
| compositeControllerListener | back to summary |
|---|---|
| private final CompositeControllerListener compositeControllerListener | |
| connected | back to summary |
|---|---|
| private boolean connected | |
| CONTROLLER_AXIS_VALUES | back to summary |
|---|---|
| private static final ControllerAxis[] CONTROLLER_AXIS_VALUES | |
| CONTROLLER_BUTTON_VALUES | back to summary |
|---|---|
| private static final ControllerButton[] CONTROLLER_BUTTON_VALUES | |
| controllerIndex | back to summary |
|---|---|
| private ControllerIndex controllerIndex | |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| maxButtonIndex | back to summary |
|---|---|
| private int maxButtonIndex | |
| name | back to summary |
|---|---|
| private final String name | |
| uuid | back to summary |
|---|---|
| private final String uuid | |
| vibrationEndMs | back to summary |
|---|---|
| private long vibrationEndMs | |
| JamepadController | back to summary |
|---|---|
| public JamepadController(ControllerIndex controllerIndex) | |
| addListener | back to summary |
|---|---|
| public void addListener(ControllerListener listener) 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.
| |
| getAxis | back to summary |
|---|---|
| public float getAxis(final int axisCode) Implements com.
| |
| getAxisCount | back to summary |
|---|---|
| public int getAxisCount() Implements com.
| |
| getButton | back to summary |
|---|---|
| public boolean getButton(final int buttonCode) Implements com.
| |
| getInitialName | back to summary |
|---|---|
| private String getInitialName() | |
| getMapping | back to summary |
|---|---|
| public ControllerMapping getMapping() Implements com.
| |
| getMaxButtonIndex | back to summary |
|---|---|
| public int getMaxButtonIndex() Implements com.
| |
| getMinButtonIndex | back to summary |
|---|---|
| public int getMinButtonIndex() Implements com.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements com.
| |
| getPlayerIndex | back to summary |
|---|---|
| public int getPlayerIndex() Implements com.
| |
| getPowerLevel | back to summary |
|---|---|
| public ControllerPowerLevel getPowerLevel() Implements com.
| |
| getUniqueId | back to summary |
|---|---|
| public String getUniqueId() Implements com.
| |
| initializeState | back to summary |
|---|---|
| private void initializeState() | |
| isConnected | back to summary |
|---|---|
| public boolean isConnected() Implements com.
| |
| isVibrating | back to summary |
|---|---|
| public boolean isVibrating() Implements com.
| |
| removeListener | back to summary |
|---|---|
| public void removeListener(ControllerListener listener) Implements com. Doc from com. Removes the given
| |
| setControllerIndex | back to summary |
|---|---|
| public void setControllerIndex(ControllerIndex controllerIndex) | |
| setDisconnected | back to summary |
|---|---|
| public void setDisconnected() | |
| 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.
| |
| toAxis | back to summary |
|---|---|
| private ControllerAxis toAxis(int axisCode) | |
| toButton | back to summary |
|---|---|
| private ControllerButton toButton(int buttonCode) | |
| update | back to summary |
|---|---|
| public boolean update() | |
| updateAxisState | back to summary |
|---|---|
| private void updateAxisState() | |
| updateButtonsState | back to summary |
|---|---|
| private void updateButtonsState() | |