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