Package gaiasky.gui.main
Class KeyBindings
java.lang.Object
gaiasky.gui.main.KeyBindings
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static class
A simple program action. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindAction
(String name) Finds an action given its namegetAllKeys
(String actionId) Gets all the sets of keys that trigger the action identified by the given name.Gets the first keys found that trigger the action identified by the given name.Map
<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) String[]
getStringKeys
(String actionId, boolean allSets) String[]
getStringKeys
(String actionId, String join, boolean allSets) static void
-
Field Details
-
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 -
instance
-
-
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 first keys found that trigger the action identified by the given name. If many sets of keys are assigned to the same action, only the first ones are returned.- Parameters:
actionId
- The action ID.- Returns:
- The keys.
-
getAllKeys
Gets all the sets of keys that trigger the action identified by the given name.- Parameters:
actionId
- The action ID.- Returns:
- The list of key sets.
-
getStringKeys
-
getStringKeys
-
getStringKeys
-
getStringArrayKeys
-