 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.keybindings;
26 import org.jetbrains.annotations.NotNull;
27 import org.jetbrains.annotations.Nullable;
final CommandList commands
The commands to bind, or.
Represents a pressed or released key.
void addKeyBinding(@NotNull final KeyEvent2 keyEvent, @NotNull final CommandList cmdList, final boolean isDefault)
Adds a key binding for a key event.
Manages a set of key bindings.
int state
The dialog state: 0=waiting for initial key press, 1=waiting for key release.
void deleteKeyBinding(@NotNull final KeyEvent2 keyEvent)
Removes a key binding for a key event.
final KeyBindings keyBindings
The KeyBindings to modify.
final KeyBindings keyBindings2
The KeyBindings to modify.
A list of GUICommand instances.
void keyPressed(@NotNull final KeyEvent2 keyEvent)
Records a binding by key code.
KeyEvent2 keyEvent
The key event.
int type
The type of key binding: -1=invalid, 0=key code (keyEvent is valid).
boolean keyReleased()
Records a key released event.
Manages the state for the key binding dialog.
KeyBindingState(@Nullable final KeyBindings keyBindings, @Nullable final KeyBindings keyBindings2, @Nullable final CommandList commands)
Creates a new instance.