public class KeyBindingMap
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.EnumMap<KeyModifier,java.util.Map<InputMappings.Input,java.util.Collection<KeyBinding>>> |
map |
Constructor and Description |
---|
KeyBindingMap() |
Modifier and Type | Method and Description |
---|---|
void |
addKey(InputMappings.Input keyCode,
KeyBinding keyBinding) |
void |
clearMap() |
private KeyBinding |
getBinding(InputMappings.Input keyCode,
KeyModifier keyModifier) |
KeyBinding |
lookupActive(InputMappings.Input keyCode) |
java.util.List<KeyBinding> |
lookupAll(InputMappings.Input keyCode) |
void |
removeKey(KeyBinding keyBinding) |
private static final java.util.EnumMap<KeyModifier,java.util.Map<InputMappings.Input,java.util.Collection<KeyBinding>>> map
@Nullable public KeyBinding lookupActive(InputMappings.Input keyCode)
@Nullable private KeyBinding getBinding(InputMappings.Input keyCode, KeyModifier keyModifier)
public java.util.List<KeyBinding> lookupAll(InputMappings.Input keyCode)
public void addKey(InputMappings.Input keyCode, KeyBinding keyBinding)
public void removeKey(KeyBinding keyBinding)
public void clearMap()