robocode

Class KeyPressedEvent

Implemented Interfaces:
Comparable

public final class KeyPressedEvent
extends KeyEvent

A KeyPressedEvent is sent to onKeyPressed() when a key has been pressed on the keyboard.
Author:
Pavel Savara (original)
Since:
1.6.1
See Also:
KeyReleasedEvent, KeyTypedEvent

Constructor Summary

KeyPressedEvent(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

Constructor Details

KeyPressedEvent

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