Class ControllerMappings

java.lang.Object
gaiasky.interafce.AbstractControllerMappings
gaiasky.interafce.ControllerMappings
All Implemented Interfaces:
IControllerMappings

public class ControllerMappings
extends AbstractControllerMappings
Reads inputListener mappings from a file
  • Constructor Details

    • ControllerMappings

      public ControllerMappings​(java.lang.String controllerName)
      Create empty controller mappings
    • ControllerMappings

      public ControllerMappings​(java.lang.String controllerName, java.nio.file.Path mappingsFile)
      Create a controller mappings instance from a *.controller file
      Parameters:
      controllerName - Controller name, or null
      mappingsFile - The mappings file
  • Method Details

    • persist

      public boolean persist​(java.nio.file.Path path)
      Persist the current mappings to the given path
      Parameters:
      path - Pointer to the file
      Returns:
      True if operation succeeded