Package gaiasky.util

Class Settings.ControlsSettings.GamepadSettings

java.lang.Object
gaiasky.util.SettingsObject
gaiasky.util.Settings.ControlsSettings.GamepadSettings
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, IObserver, Cloneable
Enclosing class:
Settings.ControlsSettings

public static class Settings.ControlsSettings.GamepadSettings extends SettingsObject implements IObserver
  • Field Details

    • mappingsFile

      public String mappingsFile
    • invertX

      public boolean invertX
    • invertY

      public boolean invertY
    • blacklist

      public String[] blacklist
  • Constructor Details

    • GamepadSettings

      public GamepadSettings()
  • Method Details

    • clone

      Overrides:
      clone in class SettingsObject
    • setParentRecursive

      protected void setParentRecursive(SettingsObject s)
      Specified by:
      setParentRecursive in class SettingsObject
    • setupListeners

      protected void setupListeners()
      Specified by:
      setupListeners in class SettingsObject
    • dispose

      public void dispose()
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
    • isControllerBlacklisted

      public boolean isControllerBlacklisted(String controllerName)
    • addControllerListener

      public void addControllerListener(com.badlogic.gdx.controllers.ControllerListener listener)
      Adds the given controller listeners to all detected controllers.
      Parameters:
      listener - The controller listener.
    • addControllerListener

      public void addControllerListener(com.badlogic.gdx.controllers.ControllerListener listener, String controllerName)
      Adds the given controller listener to the controller with the given name, if it is not blacklisted.
      Parameters:
      listener - The controller listener.
      controllerName - The controller name.
    • removeControllerListener

      public void removeControllerListener(com.badlogic.gdx.controllers.ControllerListener listener)
      Removes the given listener from all controllers.
      Parameters:
      listener - The listener to remove.
    • removeAllControllerListeners

      public void removeAllControllerListeners()
      Removes all controller listeners from all controllers.
    • getControllerListeners

      public Set<com.badlogic.gdx.controllers.ControllerListener> getControllerListeners()
      Returns a copy of the current controller listeners for the first detected controller.
      Returns:
      A set with all current controller listeners.
    • setControllerListeners

      public void setControllerListeners(Set<com.badlogic.gdx.controllers.ControllerListener> controllerListeners)
      Adds all controller listeners in the set to all detected controllers.
      Parameters:
      controllerListeners - The listeners.
    • notify

      public void notify(Event event, Object source, Object... data)
      Description copied from interface: IObserver
      Event notification call.
      Specified by:
      notify in interface IObserver
      Parameters:
      event - The event type.
      source - The source object, if any.
      data - The data associated with this event.
    • apply

      public void apply()