Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
robocode.Event
robocode.KeyEvent
robocode.KeyPressedEvent
public final class KeyPressedEvent
extends KeyEvent
onKeyPressed()
when a key has been pressed on the keyboard.
KeyReleasedEvent
, KeyTypedEvent
Constructor Summary | |
|
Method Summary |
Methods inherited from class robocode.KeyEvent | |
getSourceEvent |
Methods inherited from class robocode.Event | |
compareTo , getPriority , getTime , setPriority , setTime |
public KeyPressedEvent(KeyEvent source)
Called by the game to create a new KeyPressedEvent.
- Parameters:
source
- the source key event originating from the AWT.