public class TICKeyAdapter extends java.lang.Object implements TICKeyListener
TICKeyListener
. All implementing
methods return false
to indicate that the event was not consumed. This is a convenience
class allowing inherited classes to overwrite single methods, without having to provide
additional empty implementations for unused methods.Constructor and Description |
---|
TICKeyAdapter() |
Modifier and Type | Method and Description |
---|---|
boolean |
keyPressed(TICKeyEvent event)
This method is called when a key on the keyboard is pressed down.
|
boolean |
keyReleased(TICKeyEvent event)
This method is called when a key on the keyboard is released.
|
public TICKeyAdapter()
public boolean keyPressed(TICKeyEvent event)
TICKeyListener
keyPressed
in interface TICKeyListener
event
- the object containing information about the eventtrue
if the event was consumed by this listener, false otherwise
(See
TICComponent
for information on how the return value is used.)public boolean keyReleased(TICKeyEvent event)
TICKeyListener
keyReleased
in interface TICKeyListener
event
- the object containing information about the eventtrue
if the event was consumed by this listener, false otherwise
(See
TICComponent
for information on how the return value is used.)