|
Game Control Plus
1.2.2
|

Public Member Functions | |
| LinuxJoystickDevice (String filename) throws IOException | |
| final synchronized void | setBufferSize (int size) |
| final void | registerAxis (int index, LinuxJoystickAxis axis) |
| final void | registerButton (int index, LinuxJoystickButton button) |
| final synchronized boolean | getNextEvent (Event event) throws IOException |
| final synchronized void | poll () throws IOException |
| final int | getNumAxes () |
| final int | getNumButtons () |
| final String | getName () |
| final synchronized void | close () throws IOException |
Static Public Attributes | |
| static final int | JS_EVENT_BUTTON = 0x01 |
| static final int | JS_EVENT_AXIS = 0x02 |
| static final int | JS_EVENT_INIT = 0x80 |
| static final int | AXIS_MAX_VALUE = 32767 |
Protected Member Functions | |
| void | finalize () throws IOException |
Private Member Functions | |
| final void | processEvent (LinuxJoystickEvent joystick_event) |
| final boolean | getNextDeviceEvent (LinuxJoystickEvent joystick_event) throws IOException |
| final int | getNumDeviceButtons () throws IOException |
| final int | getNumDeviceAxes () throws IOException |
| final int | getVersion () throws IOException |
| final String | getDeviceName () throws IOException |
| final void | checkClosed () throws IOException |
Static Private Member Functions | |
| static final native long | nOpen (String filename) throws IOException |
| static final native boolean | nGetNextEvent (long fd, LinuxJoystickEvent joystick_event) throws IOException |
| static final native int | nGetNumButtons (long fd) throws IOException |
| static final native int | nGetNumAxes (long fd) throws IOException |
| static final native int | nGetVersion (long fd) throws IOException |
| static final native String | nGetName (long fd) throws IOException |
| static final native void | nClose (long fd) throws IOException |
Private Attributes | |
| final long | fd |
| final String | name |
| final LinuxJoystickEvent | joystick_event = new LinuxJoystickEvent() |
| final Event | event = new Event() |
| final LinuxJoystickButton[] | buttons |
| final LinuxJoystickAxis[] | axes |
| EventQueue | event_queue |
| boolean | closed |