See: Description
| Interface | Description | 
|---|---|
| JoystickEventListener | Interface for a listener that receives events from a distributor. | 
| JoystickObserver | An interface that allows listeners to subscribe to a controller update source. | 
| Class | Description | 
|---|---|
| Joystick | Interface to joysticks. | 
| JoystickEvent | |
| TestListener | 
| Enum | Description | 
|---|---|
| JoystickEvent.CommandType | CommandType enumerations define logical outputs of joystick controllers | 
Contains code to receive input from joysticks and potentially other input devices.
This makes use of the net.java.games.* package, which provides input from various devices. The package is JNI based, and therefore requires a native binary lib file to be loaded at runtime. The directory the native lib file resides in is set by the runtime argument -Djava.library.path=/path/to/lib/dir The jar file is jinput.jar, which wraps around the native, platform-specific libraries of jinput-wintap.dll, jinput-dx8_64.dll, libjinput-linux.so, libjinput-osx.jnilib, etc, depending on the platform.
Objects interested in joystick events should implement the JoystickEventListener interface and subscribe to JoystickEvent messages, which are generated by a JoystickObserver class.