Class DefaultKeyHandler
java.lang.Object
com.realtime.crossfire.jxclient.main.DefaultKeyHandler
- All Implemented Interfaces:
KeyHandlerListener
A
KeyHandlerListener
which updates the state of a
GuiManager
.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultKeyHandler
(@NotNull Exiter exiter, @NotNull GuiManager guiManager, @NotNull ServerConnection server, @NotNull GuiStateManager guiStateManager) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
The ESC key has been pressed.void
A key (but not ESC) has been released.
-
Constructor Details
-
DefaultKeyHandler
public DefaultKeyHandler(@NotNull @NotNull Exiter exiter, @NotNull @NotNull GuiManager guiManager, @NotNull @NotNull ServerConnection server, @NotNull @NotNull GuiStateManager guiStateManager) Creates a new instance.- Parameters:
exiter
- the exiter instanceguiManager
- the gui manager instanceserver
- the server connection to trackguiStateManager
- the gui state manager instance
-
-
Method Details
-
escPressed
public void escPressed()Description copied from interface:KeyHandlerListener
The ESC key has been pressed.- Specified by:
escPressed
in interfaceKeyHandlerListener
-
keyReleased
public void keyReleased()Description copied from interface:KeyHandlerListener
A key (but not ESC) has been released.- Specified by:
keyReleased
in interfaceKeyHandlerListener
-