net.java.games.input
Class LinuxEnvironmentPlugin

java.lang.Object
  extended by net.java.games.input.ControllerEnvironment
      extended by net.java.games.input.LinuxEnvironmentPlugin

public final class LinuxEnvironmentPlugin
extends ControllerEnvironment

Environment plugin for linux

Author:
elias, Jeremy Booth (jeremy@newdawnsoftware.com)

Field Summary
 
Fields inherited from class net.java.games.input.ControllerEnvironment
controllerListeners
 
Constructor Summary
LinuxEnvironmentPlugin()
           
 
Method Summary
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()
           
 
Methods inherited from class net.java.games.input.ControllerEnvironment
addControllerListener, fireControllerAdded, fireControllerRemoved, getDefaultEnvironment, removeControllerListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinuxEnvironmentPlugin

public LinuxEnvironmentPlugin()
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 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()
Specified by:
isSupported in class ControllerEnvironment