Package net.java.games.input
Class DirectAndRawInputEnvironmentPlugin
- java.lang.Object
-
- net.java.games.input.ControllerEnvironment
-
- net.java.games.input.DirectAndRawInputEnvironmentPlugin
-
public class DirectAndRawInputEnvironmentPlugin extends ControllerEnvironment
Combines the list of seperate keyboards and mice found with the raw plugin, with the game controllers found with direct input.
-
-
Field Summary
-
Fields inherited from class net.java.games.input.ControllerEnvironment
controllerListeners
-
-
Constructor Summary
Constructors Constructor Description DirectAndRawInputEnvironmentPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Controller[]getControllers()Returns a list of all controllers available to this environment, or an empty array if there are no controllers in this environment.booleanisSupported()Returns the isSupported status of this environment.Controller[]rescanControllers()Rescans the devices and provides a list of new controllers.-
Methods inherited from class net.java.games.input.ControllerEnvironment
addControllerListener, fireControllerAdded, fireControllerRemoved, getDefaultEnvironment, removeControllerListener
-
-
-
-
Method Detail
-
getControllers
public Controller[] getControllers()
Description copied from class:ControllerEnvironmentReturns a list of all controllers available to this environment, or an empty array if there are no controllers in this environment.- Specified by:
getControllersin classControllerEnvironment- See Also:
ControllerEnvironment.getControllers()
-
rescanControllers
public final Controller[] rescanControllers()
Description copied from class:ControllerEnvironmentRescans the devices and provides a list of new controllers.- Specified by:
rescanControllersin classControllerEnvironment- Returns:
- a list of all controllers available to this environment.
-
isSupported
public boolean isSupported()
Description copied from class:ControllerEnvironmentReturns 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:
isSupportedin classControllerEnvironment- See Also:
ControllerEnvironment.isSupported()
-
-