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

Public Member Functions

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

Static Package Attributes

 static
 

Private Member Functions

final Controller[] enumControllers (RawInputEventQueue queue) throws IOException
 

Static Private Member Functions

static final SetupAPIDevice lookupSetupAPIDevice (String device_name, List setupapi_devices)
 
static final void createControllersFromDevices (RawInputEventQueue queue, List controllers, List devices, List setupapi_devices) throws IOException
 
static final native void enumerateDevices (RawInputEventQueue queue, List devices) throws IOException
 
static final List enumSetupAPIDevices () throws IOException
 
static final native void nEnumSetupAPIDevices (byte[] guid, List devices) throws IOException
 
static final native byte[] getKeyboardClassGUID ()
 
static final native byte[] getMouseClassGUID ()
 

Additional Inherited Members

- Static Public Member Functions inherited from net.java.games.input.ControllerEnvironment
static ControllerEnvironment getEnvironment ()
 
- 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()
 
- Static Package Functions inherited from net.java.games.input.ControllerEnvironment
static void logln (String msg)
 
static void log (String msg)
 

Detailed Description

DirectInput implementation of controller environment

Author
martak
elias
Version
1.0

Constructor & Destructor Documentation

net.java.games.input.RawInputEnvironmentPlugin.RawInputEnvironmentPlugin ( )

Creates new DirectInputEnvironment

Member Function Documentation

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

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.

Member Data Documentation

net.java.games.input.RawInputEnvironmentPlugin.static
staticpackage
Initial value:
{
if (isSupported()){
System.loadLibrary("jinput-raw");
}
}
public static boolean isSupported(){
if (System.getProperty("os.name").indexOf("Windows") != -1){
return true;
}
return false;
}
private final Controller[] controllers