GamePadButton
Complete API reference for GamePadButton, including constructors, attributes, virtual attributes, and methods.
Package: JAVARuntime
Category: Input
Component: no
public class GamePadButton
Constructors
| Signature | Description |
|---|---|
GamePadButton(GamePadButton) | Executes GamePadButton and returns after the underlying engine call finishes. |
GamePadButton() | Executes GamePadButton and returns after the underlying engine call finishes. |
Attributes
| Name | Type | Description |
|---|---|---|
gamePadButton | GamePadButton | Represents the gamePadButton value stored on this instance. Read or assign to update the property. |
Virtual Attributes
| Name | Type | Access | Description |
|---|---|---|---|
down | boolean | get/set | Checks whether the button was just pressed. This returns true only on the first frame it was pressed. |
longDown | boolean | get/set | Checks whether the button was just long-pressed. This returns true only on the first frame it was long-pressed. |
longPressed | boolean | get/set | Checks whether the button is being long-pressed. This returns true on every frame while it remains pressed for a long duration. |
pressed | boolean | get/set | Checks whether the button is currently being held down. This returns true on every frame while it remains pressed. |