Class KeyBindings
java.lang.Object
gaiasky.gui.main.KeyBindings
Defines keyboard bindings to actions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic classA simple program action. -
Field Summary
Fields -
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>>> String[]getStringArrayKeys(String actionId) getStringKeys(String actionId) String[]getStringKeys(String actionId, boolean allSets) String[]getStringKeys(String actionId, String join, boolean allSets) static voidstatic voidinitialize(boolean force)
-
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() -
initialize
public static void initialize(boolean force) -
getMappings
-
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
-
getAllKeys
-
getStringKeys
-
getStringKeys
-
getStringKeys
-
getStringArrayKeys
-