Package net.java.games.input
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
-
-
Field Summary
-
Fields inherited from class net.java.games.input.ControllerEnvironment
controllerListeners
-
-
Constructor Summary
Constructors Constructor Description LinuxEnvironmentPlugin()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.Object
execute(net.java.games.input.LinuxDeviceTask task)
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()
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
-
execute
public static final java.lang.Object execute(net.java.games.input.LinuxDeviceTask task) throws java.io.IOException
- Throws:
java.io.IOException
-
getControllers
public final Controller[] 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 classControllerEnvironment
- 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 Controller[] rescanControllers()
Description copied from class:ControllerEnvironment
Rescans the devices and provides a list of new controllers.- 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
-
-