Class LinuxEnvironmentPlugin

java.lang.Object
net.java.games.input.ControllerEnvironment
net.java.games.input.LinuxEnvironmentPlugin
All Implemented Interfaces:
Plugin

public final class LinuxEnvironmentPlugin extends ControllerEnvironment implements Plugin
Environment plugin for linux
  • Constructor Details

    • LinuxEnvironmentPlugin

      public LinuxEnvironmentPlugin()
  • Method Details

    • execute

      public static final Object execute(net.java.games.input.LinuxDeviceTask task) throws IOException
      Throws:
      IOException
    • getControllers

      public final AbstractController[] getControllers()
      Returns a list of all controllers available to this environment, or an empty array if there are no controllers in this environment.
      Specified by:
      getControllers in class ControllerEnvironment
      Returns:
      Returns a list of all controllers available to this environment, or an empty array if there are no controllers in this environment.
    • rescanControllers

      public final AbstractController[] rescanControllers()
      Description copied from class: ControllerEnvironment
      Rescans the devices and provides a list of new controllers.
      Specified by:
      rescanControllers in class ControllerEnvironment
      Returns:
      a list of all controllers available to this environment.
    • isSupported

      public boolean isSupported()
      Description copied from class: ControllerEnvironment
      Returns the isSupported status of this environment. What makes an environment supported or not is up to the particular plugin, but may include OS or available hardware.
      Specified by:
      isSupported in class ControllerEnvironment