Package gaiasky.gui

Class GamepadMappings

All Implemented Interfaces:
IGamepadMappings

public class GamepadMappings extends AbstractGamepadMappings
  • Constructor Details

    • GamepadMappings

      public GamepadMappings(String controllerName)
      Create empty controller mappings.
    • GamepadMappings

      public GamepadMappings(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