Package gaiasky.gui
Class KeyBindings
java.lang.Object
gaiasky.gui.KeyBindings
Contains the key mappings and the actions. This should be persisted somehow
in the future.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static class
A simple program action. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfindAction
(String name) Finds an action given its nameGets the keys that trigger the action identified by the given nameMap<KeyBindings.ProgramAction,
com.badlogic.gdx.utils.Array<TreeSet<Integer>>> Map<KeyBindings.ProgramAction,
com.badlogic.gdx.utils.Array<TreeSet<Integer>>> String[]
getStringArrayKeys
(String actionId) getStringKeys
(String actionId) getStringKeys
(String actionId, String join) static void
-
Field Details
-
instance
-
CTRL_L
public static final int CTRL_L- See Also:
-
SHIFT_L
public static final int SHIFT_L- See Also:
-
ALT_L
public static final int ALT_L- See Also:
-
SPECIAL
public static final int[] SPECIAL
-
-
Method Details
-
initialize
public static void initialize() -
getMappings
-
getMappingsInv
public Map<KeyBindings.ProgramAction,com.badlogic.gdx.utils.Array<TreeSet<Integer>>> getMappingsInv() -
getSortedMappings
-
getSortedMappingsInv
public Map<KeyBindings.ProgramAction,com.badlogic.gdx.utils.Array<TreeSet<Integer>>> getSortedMappingsInv() -
findAction
Finds an action given its name- Parameters:
name
- The name- Returns:
- The action if it exists
-
getKeys
Gets the keys that trigger the action identified by the given name- Parameters:
actionId
- The action ID- Returns:
- The keys
-
getStringKeys
-
getStringKeys
-
getStringArrayKeys
-