KeyboardButton
Complete API reference for KeyboardButton, including constructors, attributes, virtual attributes, and methods.
Package: JAVARuntime
Category: Input
Component: no
public class KeyboardButton
Constructors
| Signature | Description |
|---|---|
KeyboardButton(KeyboardButton) | Executes KeyboardButton and returns after the underlying engine call finishes. |
KeyboardButton() | Executes KeyboardButton and returns after the underlying engine call finishes. |
Attributes
| Name | Type | Description |
|---|---|---|
gamePadButton | KeyboardButton | 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. |
name | String | get | Returns the name of the keyboard button. |
pressed | boolean | get/set | Checks whether the button is currently being held down. This returns true on every frame while it remains pressed. |
printableName | String | get | Returns the printable name of the keyboard button. |
up | boolean | get/set | Checks whether the button was just released. This returns true only on the first frame after it was released. |
upperCase | boolean | get | Checks if the button is uppercase. |