Package robocode
Class KeyPressedEvent
- java.lang.Object
-
- robocode.Event
-
- robocode.KeyEvent
-
- robocode.KeyPressedEvent
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Event>
public final class KeyPressedEvent extends KeyEvent
A KeyPressedEvent is sent toonKeyPressed()
when a key has been pressed on the keyboard.- Since:
- 1.6.1
- Author:
- Pavel Savara (original), Flemming N. Larsen (contributor)
- See Also:
KeyReleasedEvent
,KeyTypedEvent
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KeyPressedEvent(java.awt.event.KeyEvent source)
Called by the game to create a new KeyPressedEvent.
-
Method Summary
-
Methods inherited from class robocode.KeyEvent
getSourceEvent
-
Methods inherited from class robocode.Event
compareTo, getPriority, getTime, setPriority, setTime
-
-