class LinuxJoystickAxis extends AbstractComponent
Component.Identifier, Component.POV| Constructor and Description |
|---|
LinuxJoystickAxis(Component.Identifier.Axis axis_id) |
LinuxJoystickAxis(Component.Identifier.Axis axis_id,
boolean analog) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAnalog()
Returns whether or not the axis is analog, or false if it is digital.
|
boolean |
isRelative()
Returns
true if data returned from poll
is relative to the last call, or false if data
is absolute. |
protected float |
poll() |
(package private) void |
setValue(float value) |
getDeadZone, getEventValue, getIdentifier, getName, getPollData, resetHasPolled, setEventValue, setPollData, toStringpublic LinuxJoystickAxis(Component.Identifier.Axis axis_id)
public LinuxJoystickAxis(Component.Identifier.Axis axis_id, boolean analog)
public final boolean isRelative()
Componenttrue if data returned from poll
is relative to the last call, or false if data
is absolute.public final boolean isAnalog()
AbstractComponentisAnalog in interface ComponentisAnalog in class AbstractComponentfinal void setValue(float value)
protected final float poll()
throws java.io.IOException
poll in class AbstractComponentjava.io.IOException