Class KeyBindingState
java.lang.Object
com.realtime.crossfire.jxclient.gui.keybindings.KeyBindingState
Manages the state for the key binding dialog.
-
Constructor Summary
ConstructorsConstructorDescriptionKeyBindingState(@Nullable KeyBindings keyBindings, @Nullable KeyBindings keyBindings2, @Nullable CommandList commands) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidkeyPressed(@NotNull KeyEvent2 keyEvent) Records a binding by key code.booleanRecords a key released event.
-
Constructor Details
-
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 Details
-
keyPressed
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
-