robocode

Class KeyEvent

Implemented Interfaces:
Comparable
Known Direct Subclasses:
KeyPressedEvent, KeyReleasedEvent, KeyTypedEvent

public abstract class KeyEvent
extends Event

Super class of all events that originates from the keyboard.
Author:
Pavel Savara (original)
Since:
1.6.1

Constructor Summary

KeyEvent(KeyEvent source)
Called by the game to create a new KeyEvent.

Method Summary

KeyEvent
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.

Methods inherited from class robocode.Event

compareTo, getPriority, getTime, setPriority, setTime

Constructor Details

KeyEvent

public KeyEvent(KeyEvent source)
Called by the game to create a new KeyEvent.
Parameters:
source - the source key event originating from the AWT.

Method Details

getSourceEvent

public KeyEvent 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.