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 TypeMethodDescriptionvoidThe ESC key has been pressed.voidA 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:KeyHandlerListenerThe ESC key has been pressed.- Specified by:
escPressedin interfaceKeyHandlerListener
-
keyReleased
public void keyReleased()Description copied from interface:KeyHandlerListenerA key (but not ESC) has been released.- Specified by:
keyReleasedin interfaceKeyHandlerListener
-