keyPressed
keyPressed: (KeyListener, AwtKeyEvent) -> ()A key went down (and again for each auto-repeat).
| Method | Returns | Description |
|---|---|---|
keyPressed(AwtKeyEvent) | () | A key went down (and again for each auto-repeat). |
keyReleased(AwtKeyEvent) | () | A key came up. |
keyTyped(AwtKeyEvent) | () | A character was typed. |
isEnabledOnLoginScreen() | boolean | Whether the listener runs on the login screen; false unless the table answers true. |
focusLost() | () | The game window lost keyboard focus: a key held now will not report its release. |
keyPressedkeyPressed: (KeyListener, AwtKeyEvent) -> ()A key went down (and again for each auto-repeat).
keyReleasedkeyReleased: (KeyListener, AwtKeyEvent) -> ()A key came up.
keyTypedkeyTyped: (KeyListener, AwtKeyEvent) -> ()A character was typed.
isEnabledOnLoginScreenisEnabledOnLoginScreen: (KeyListener) -> booleanWhether the listener runs on the login screen; false unless the table answers true.
focusLostfocusLost: (KeyListener) -> ()The game window lost keyboard focus: a key held now will not report its release.