Package net.java.games.input
Class AWTEnvironmentPlugin
- java.lang.Object
-
- net.java.games.input.ControllerEnvironment
-
- net.java.games.input.AWTEnvironmentPlugin
-
- All Implemented Interfaces:
Plugin
public class AWTEnvironmentPlugin extends ControllerEnvironment implements Plugin
-
-
Field Summary
-
Fields inherited from class net.java.games.input.ControllerEnvironment
controllerListeners
-
-
Constructor Summary
Constructors Constructor Description AWTEnvironmentPlugin()
-
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.boolean
isSupported()
Returns the isSupported status of this environment.Controller[]
rescanControllers()
Returns a list of all controllers available to this environment, or an empty array if there are no controllers in this environment.-
Methods inherited from class net.java.games.input.ControllerEnvironment
addControllerListener, fireControllerAdded, fireControllerRemoved, getDefaultEnvironment, removeControllerListener
-
-
-
-
Method Detail
-
getControllers
public Controller[] 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 classControllerEnvironment
-
rescanControllers
public Controller[] rescanControllers()
Returns a list of all controllers available to this environment, or an empty array if there are no controllers in this environment.- Specified by:
rescanControllers
in classControllerEnvironment
- 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 classControllerEnvironment
-
-