Package 

Object Keybinds

  • All Implemented Interfaces:

    
    public class Keybinds
    
                        

    Reads and writes a configuration of key bindings to a JSON file.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Optional<KeyCode> get(ActionFromKey action) Retrieve the keys bound to a certain action.
      final Unit set(ActionFromKey action, KeyCode key) Associate an action with a set of keys.
      final Unit save() Write the binds to the file system.
      final Unit load() Load the binds from a file in the file system, reverting to classpath on failure.
      final Map<ActionFromKey, KeyCode> getConfig() The currently loaded configuration.
      final Unit setConfig(Map<ActionFromKey, KeyCode> config) The currently loaded configuration.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait