Class DirectInputEnvironmentPlugin

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

public final class DirectInputEnvironmentPlugin extends ControllerEnvironment implements Plugin
DirectInput implementation of controller environment
  • Constructor Details

    • DirectInputEnvironmentPlugin

      public DirectInputEnvironmentPlugin()
      Creates new DirectInputEnvironment
  • Method Details

    • getControllers

      public final AbstractController[] getControllers()
      Description copied from class: ControllerEnvironment
      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
    • rescanControllers

      public 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.
    • releaseDevices

      public void releaseDevices()
      Releases all active devices running through this plugin. Call this before a hot reload.
    • 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