Class ControllerMappings

All Implemented Interfaces:
IControllerMappings

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

    • ControllerMappings

      public ControllerMappings(String controllerName)
      Create empty controller mappings
    • ControllerMappings

      public ControllerMappings(String controllerName, 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(Path path)
      Persist the current mappings to the given path
      Parameters:
      path - Pointer to the file
      Returns:
      True if operation succeeded