| Modifier and Type | Field and Description |
|---|---|
| protected final boolean[] | |
| protected boolean | |
| private final IntSet | |
| protected int | |
| protected final boolean[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | isKeyJustPressed(int key)
Implements com. Returns whether the key has just been pressed. |
| public boolean | isKeyPressed(int key)
Implements com. Returns whether the key is pressed. |
| public void | setCatchKey(int keycode, boolean catchKey)
Implements com. Sets whether the given key on Android or GWT should be caught. |
| justPressedKeys | back to summary |
|---|---|
| protected final boolean[] justPressedKeys | |
| keyJustPressed | back to summary |
|---|---|
| protected boolean keyJustPressed | |
| keysToCatch | back to summary |
|---|---|
| private final IntSet keysToCatch | |
| pressedKeyCount | back to summary |
|---|---|
| protected int pressedKeyCount | |
| pressedKeys | back to summary |
|---|---|
| protected final boolean[] pressedKeys | |
| AbstractInput | back to summary |
|---|---|
| public AbstractInput() | |
| isCatchKey | back to summary |
|---|---|
| public boolean isCatchKey(int keycode) Implements com.
| |
| isKeyJustPressed | back to summary |
|---|---|
| public boolean isKeyJustPressed(int key) Implements com. Doc from com. Returns whether the key has just been pressed.
| |
| isKeyPressed | back to summary |
|---|---|
| public boolean isKeyPressed(int key) Implements com. Doc from com. Returns whether the key is pressed.
| |
| setCatchKey | back to summary |
|---|---|
| public void setCatchKey(int keycode, boolean catchKey) Implements com. Doc from com. Sets whether the given key on Android or GWT should be caught. No effect on other platforms. All keys that are not caught may be handled by other apps or background processes on Android, or may trigger default browser behaviour on GWT. For example, media or volume buttons are handled by background media players if present, or Space key triggers a scroll. All keys you need to control your game should be caught to prevent unintended behaviour.
| |