Package robocode
Class KeyEvent
java.lang.Object
robocode.Event
robocode.KeyEvent
- All Implemented Interfaces:
Serializable
,Comparable<Event>
- Direct Known Subclasses:
KeyPressedEvent
,KeyReleasedEvent
,KeyTypedEvent
Super class of all events that originates from the keyboard.
- Since:
- 1.6.1
- Author:
- Pavel Savara (original), Flemming N. Larsen (contributor)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class robocode.Event
compareTo, getPriority, getTime, setPriority, setTime
-
Constructor Details
-
KeyEvent
Called by the game to create a new KeyEvent.- Parameters:
source
- the source key event originating from the AWT.
-
-
Method Details
-
getSourceEvent
Do not call this method!This method is used by the game to determine the type of the source key event that occurred in the AWT.
- Returns:
- the source key event that originates from the AWT.
-