GamePadButton
class GamePadButton
It is responsible for checking and handling the controller's interaction with the game.
public class GamePadButton
— Constructors (1) —
Constructor | Description |
---|---|
GamePadButton() | Creates a new GamePadButton. |
— Methods (8) —
Name | Description |
---|---|
boolean isPressed() | Returns true if the GamePadButton is being pressed, false if not. |
void setPressed(boolean value) | Defines whether or not the GamePadButton is being pressed to be "value" argument. |
boolean isDown() | Returns true if the GamePadButton was pressed, false if not. |
void setDown(boolean value) | Defines whether or not the GamePadButton was pressed to be "value" argument. |
boolean isLongDown() | Returns true if the GamePadButton has been pressed for a long time, false if not. |
void setLongDown(boolean value) | Defines whether or not the GamePadButton has been pressed for a long time to be "value" argument. |
boolean isLongPressed() | Returns true if the GamePadButton is being pressed for a long time, false if not. |
void setLongPressed(boolean value) | Defines whether or not the GamePadButton is being pressed for a long time to be "value" argument. |