public final class KeyPressedEvent extends KeyEvent
onKeyPressed() when a key has been pressed on the keyboard.KeyReleasedEvent,
KeyTypedEvent,
Serialized Form| Constructor and Description |
|---|
KeyPressedEvent(KeyEvent source)
Called by the game to create a new KeyPressedEvent.
|
getSourceEventcompareTo, getPriority, getTime, setPriority, setTimepublic KeyPressedEvent(KeyEvent source)
source - the source key event originating from the AWT.Copyright © 2021 Robocode. All Rights Reserved.