Serializable, Comparable<Event>public final class KeyPressedEvent extends KeyEvent
onKeyPressed() when a key has been pressed on the keyboard.KeyReleasedEvent,
KeyTypedEvent,
Serialized Form| Constructor | Description |
|---|---|
KeyPressedEvent(KeyEvent source) |
Called by the game to create a new KeyPressedEvent.
|
compareTo, getPriority, getTime, setPriority, setTimegetSourceEventpublic KeyPressedEvent(KeyEvent source)
source - the source key event originating from the AWT.Copyright © 2018. All rights reserved.