Game Control Plus  1.2.2
 All Classes Namespaces Functions Variables Pages
net.java.games.input.LinuxEnvironmentPlugin Class Reference
Inheritance diagram for net.java.games.input.LinuxEnvironmentPlugin:

Classes

class  ShutdownHook
 

Public Member Functions

final Controller[] getControllers ()
 
- Public Member Functions inherited from net.java.games.input.ControllerEnvironment
void addControllerListener (ControllerListener l)
 
void removeControllerListener (ControllerListener l)
 

Static Public Member Functions

static final Object execute (LinuxDeviceTask task) throws IOException
 
- Static Public Member Functions inherited from net.java.games.input.ControllerEnvironment
static ControllerEnvironment getEnvironment ()
 

Static Package Functions

 [static initializer]
 
- Static Package Functions inherited from net.java.games.input.ControllerEnvironment
static void logln (String msg)
 
static void log (String msg)
 

Private Member Functions

final Controller[] enumerateControllers ()
 
final void enumerateJoystickControllers (List controllers)
 
final void enumerateEventControllers (List controllers)
 

Static Private Member Functions

static final Component[] createComponents (List event_components, LinuxEventDevice device)
 
static final Mouse createMouseFromDevice (LinuxEventDevice device, Component[] components) throws IOException
 
static final Keyboard createKeyboardFromDevice (LinuxEventDevice device, Component[] components) throws IOException
 
static final Controller createJoystickFromDevice (LinuxEventDevice device, Component[] components, Controller.Type type) throws IOException
 
static final Controller createControllerFromDevice (LinuxEventDevice device) throws IOException
 
static final
Component.Identifier.Button 
getButtonIdentifier (int index)
 
static final Controller createJoystickFromJoystickDevice (LinuxJoystickDevice device)
 
static final File[] enumerateJoystickDeviceFiles (final String dev_path)
 
static String getAbsolutePathPrivileged (final File file)
 
static File[] listFilesPrivileged (final File dir, final FilenameFilter filter)
 

Private Attributes

final Controller[] controllers
 
final List devices = new ArrayList()
 

Static Private Attributes

static final String LIBNAME = "jinput-linux"
 
static final String POSTFIX64BIT = "64"
 
static final LinuxDeviceThread device_thread = new LinuxDeviceThread()
 

Additional Inherited Members

- Protected Member Functions inherited from net.java.games.input.ControllerEnvironment
 ControllerEnvironment ()
 
void fireControllerAdded (Controller c)
 
void fireControllerRemoved (Controller c)
 
- Protected Attributes inherited from net.java.games.input.ControllerEnvironment
final ArrayList controllerListeners = new ArrayList()
 
- Static Protected Attributes inherited from net.java.games.input.ControllerEnvironment
static final byte MACOSX = 0
 
static final byte WINDOWS = 1
 
static final byte LINUX = 2
 
static final byte OTHER = 3
 
static final byte os = getOS()
 
static final byte wordsize = getWordSize()
 

Detailed Description

Environment plugin for linux

Author
elias
Jeremy Booth (jerem.nosp@m.y@ne.nosp@m.wdawn.nosp@m.soft.nosp@m.ware..nosp@m.com)

Member Function Documentation

final Controller [] net.java.games.input.LinuxEnvironmentPlugin.getControllers ( )
virtual

Returns a list of all controllers available to this environment, or an empty array if there are no controllers in this environment.

Returns
Returns a list of all controllers available to this environment, or an empty array if there are no controllers in this environment.

Implements net.java.games.input.ControllerEnvironment.