class LinuxComponent extends AbstractComponent
Component.Identifier, Component.POV
Constructor and Description |
---|
LinuxComponent(LinuxEventComponent component) |
Modifier and Type | Method and Description |
---|---|
(package private) float |
convertValue(float value,
LinuxAxisDescriptor descriptor) |
LinuxEventComponent |
getComponent() |
float |
getDeadZone()
Returns the suggested dead zone for this axis.
|
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() |
getEventValue, getIdentifier, getName, getPollData, resetHasPolled, setEventValue, setPollData, toString
public LinuxComponent(LinuxEventComponent component)
public final boolean isRelative()
Component
true
if data returned from poll
is relative to the last call, or false
if data
is absolute.public final boolean isAnalog()
AbstractComponent
isAnalog
in interface Component
isAnalog
in class AbstractComponent
protected float poll() throws java.io.IOException
poll
in class AbstractComponent
java.io.IOException
float convertValue(float value, LinuxAxisDescriptor descriptor)
public final float getDeadZone()
AbstractComponent
getDeadZone
in interface Component
getDeadZone
in class AbstractComponent
Component.getPollData()
public final LinuxEventComponent getComponent()