public class DefaultKeyHandler extends java.lang.Object implements KeyHandlerListener
KeyHandlerListener
which updates the state of a
GuiManager
.Constructor and Description |
---|
DefaultKeyHandler(@NotNull Exiter exiter,
@NotNull GuiManager guiManager,
@NotNull ServerConnection server,
@NotNull GuiStateManager guiStateManager)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
escPressed()
The ESC key has been pressed.
|
void |
keyReleased()
A key (but not ESC) has been released.
|
public DefaultKeyHandler(@NotNull @NotNull Exiter exiter, @NotNull @NotNull GuiManager guiManager, @NotNull @NotNull ServerConnection server, @NotNull @NotNull GuiStateManager guiStateManager)
exiter
- the exiter instanceguiManager
- the gui manager instanceserver
- the server connection to trackguiStateManager
- the gui state manager instancepublic void escPressed()
KeyHandlerListener
escPressed
in interface KeyHandlerListener
public void keyReleased()
KeyHandlerListener
keyReleased
in interface KeyHandlerListener