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