Class KeyBindingState
- java.lang.Object
-
- com.realtime.crossfire.jxclient.gui.keybindings.KeyBindingState
-
public class KeyBindingState extends java.lang.ObjectManages the state for the key binding dialog.
-
-
Constructor Summary
Constructors Constructor Description KeyBindingState(@Nullable KeyBindings keyBindings, @Nullable KeyBindings keyBindings2, @Nullable CommandList commands)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidkeyPressed(@NotNull KeyEvent2 keyEvent)Records a binding by key code.booleankeyReleased()Records a key released event.
-
-
-
Constructor Detail
-
KeyBindingState
public KeyBindingState(@Nullable @Nullable KeyBindings keyBindings, @Nullable @Nullable KeyBindings keyBindings2, @Nullable @Nullable CommandList commands)Creates a new instance.- Parameters:
keyBindings- theKeyBindingsto modify; may benullwhen removing bindingskeyBindings2- theKeyBindingsto modify; only used when removing bindings; may benullwhen removing bindingscommands- the commands to bind, ornullto unbind
-
-
Method Detail
-
keyPressed
public void keyPressed(@NotNull @NotNull KeyEvent2 keyEvent)Records a binding by key code.- Parameters:
keyEvent- the key that was pressed
-
keyReleased
public boolean keyReleased()
Records a key released event.- Returns:
trueif the dialog has finished, orfalseif the dialog is still active
-
-