public final class KeyPressedEvent extends KeyEvent
onKeyPressed()
when a key has been pressed on the keyboard.KeyReleasedEvent
,
KeyTypedEvent
,
Serialized FormConstructor and Description |
---|
KeyPressedEvent(KeyEvent source)
Called by the game to create a new KeyPressedEvent.
|
public KeyPressedEvent(KeyEvent source)
source
- the source key event originating from the AWT.