net.java.games.input
Class LinuxEnvironmentPlugin
java.lang.Object
net.java.games.input.ControllerEnvironment
net.java.games.input.LinuxEnvironmentPlugin
- All Implemented Interfaces:
- net.java.games.util.plugins.Plugin
public final class LinuxEnvironmentPlugin
- extends ControllerEnvironment
- implements net.java.games.util.plugins.Plugin
Environment plugin for linux
- Author:
- elias, Jeremy Booth (jeremy@newdawnsoftware.com)
Method Summary |
static 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinuxEnvironmentPlugin
public LinuxEnvironmentPlugin()
execute
public static final Object execute(net.java.games.input.LinuxDeviceTask task)
throws IOException
- Throws:
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 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.
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