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

Classes

class  ShutdownHook
 

Public Member Functions

 DirectInputEnvironmentPlugin ()
 
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 Component[] createComponents (IDirectInputDevice device, boolean map_mouse_buttons)
 
final Mouse createMouseFromDevice (IDirectInputDevice device)
 
final AbstractController createControllerFromDevice (IDirectInputDevice device, Controller.Type type)
 
final Keyboard createKeyboardFromDevice (IDirectInputDevice device)
 
final Controller createControllerFromDevice (IDirectInputDevice device)
 
final Controller[] enumControllers (DummyWindow window) throws IOException
 

Private Attributes

final List active_devices = new ArrayList()
 
final DummyWindow window
 

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.DirectInputEnvironmentPlugin.DirectInputEnvironmentPlugin ( )

Creates new DirectInputEnvironment

Member Function Documentation

final Controller [] net.java.games.input.DirectInputEnvironmentPlugin.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.DirectInputEnvironmentPlugin.static
staticpackage
Initial value:
{
if (isSupported()){
if(wordsize == 64)
System.loadLibrary("jinput-dx8_64");
else
System.loadLibrary("jinput-dx8");
}
}
public static boolean isSupported(){
if (System.getProperty("os.name").indexOf("Windows") != -1){
return true;
}
return false;
}
private final Controller[] controllers