Serializable, Comparable<Event>KeyPressedEvent, KeyReleasedEvent, KeyTypedEventpublic abstract class KeyEvent extends Event
| Constructor | Description |
|---|---|
KeyEvent(KeyEvent source) |
Called by the game to create a new KeyEvent.
|
| Modifier and Type | Method | Description |
|---|---|---|
KeyEvent |
getSourceEvent() |
Do not call this method!
|
compareTo, getPriority, getTime, setPriority, setTimepublic KeyEvent(KeyEvent source)
source - the source key event originating from the AWT.public KeyEvent getSourceEvent()
This method is used by the game to determine the type of the source key event that occurred in the AWT.
Copyright © 2018. All rights reserved.