net.java.games.input
Class DefaultControllerEnvironment
java.lang.Object
net.java.games.input.ControllerEnvironment
net.java.games.input.DefaultControllerEnvironment
class DefaultControllerEnvironment
- extends ControllerEnvironment
The default controller environment.
Field Summary |
(package private) static java.lang.String |
libPath
|
Method Summary |
Controller[] |
getControllers()
Returns a list of all controllers available to this environment,
or an empty array if there are no controllers in this environment. |
(package private) static java.lang.String |
getPrivilegedProperty(java.lang.String property)
|
(package private) static java.lang.String |
getPrivilegedProperty(java.lang.String property,
java.lang.String default_value)
|
boolean |
isSupported()
Returns the isSupported status of this environment. |
(package private) static void |
loadLibrary(java.lang.String lib_name)
Static utility method for loading native libraries. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
libPath
static java.lang.String libPath
DefaultControllerEnvironment
public DefaultControllerEnvironment()
- Public no-arg constructor.
loadLibrary
static void loadLibrary(java.lang.String lib_name)
- Static utility method for loading native libraries.
It will try to load from either the path given by
the net.java.games.input.librarypath property
or through System.loadLibrary().
getPrivilegedProperty
static java.lang.String getPrivilegedProperty(java.lang.String property)
getPrivilegedProperty
static java.lang.String getPrivilegedProperty(java.lang.String property,
java.lang.String default_value)
getControllers
public 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
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