Class DefaultKeyHandler
- java.lang.Object
-
- com.realtime.crossfire.jxclient.main.DefaultKeyHandler
-
- All Implemented Interfaces:
KeyHandlerListener
public class DefaultKeyHandler extends java.lang.Object implements KeyHandlerListener
AKeyHandlerListenerwhich updates the state of aGuiManager.
-
-
Constructor Summary
Constructors Constructor Description DefaultKeyHandler(@NotNull Exiter exiter, @NotNull GuiManager guiManager, @NotNull ServerConnection server, @NotNull GuiStateManager guiStateManager)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidescPressed()The ESC key has been pressed.voidkeyReleased()A key (but not ESC) has been released.
-
-
-
Constructor Detail
-
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 Detail
-
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
-
-