final class LinuxJoystickDevice extends Object implements LinuxDevice
Modifier and Type | Field and Description |
---|---|
static int |
AXIS_MAX_VALUE |
static int |
JS_EVENT_AXIS |
static int |
JS_EVENT_BUTTON |
static int |
JS_EVENT_INIT |
Constructor and Description |
---|
LinuxJoystickDevice(String filename) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
byte[] |
getAxisMap() |
char[] |
getButtonMap() |
String |
getName() |
boolean |
getNextEvent(Event event) |
int |
getNumAxes() |
int |
getNumButtons() |
void |
poll() |
void |
registerAxis(int index,
LinuxJoystickAxis axis) |
void |
registerButton(int index,
LinuxJoystickButton button) |
void |
registerPOV(LinuxJoystickPOV pov) |
void |
setBufferSize(int size) |
public static final int JS_EVENT_BUTTON
public static final int JS_EVENT_AXIS
public static final int JS_EVENT_INIT
public static final int AXIS_MAX_VALUE
public LinuxJoystickDevice(String filename) throws IOException
IOException
public final void setBufferSize(int size)
public final void registerAxis(int index, LinuxJoystickAxis axis)
public final void registerButton(int index, LinuxJoystickButton button)
public final void registerPOV(LinuxJoystickPOV pov)
public final boolean getNextEvent(Event event)
public final void poll() throws IOException
IOException
public final int getNumAxes()
public final int getNumButtons()
public final byte[] getAxisMap()
public final char[] getButtonMap()
public final String getName()
public final void close() throws IOException
close
in interface LinuxDevice
IOException
protected void finalize() throws IOException
finalize
in class Object
IOException