public abstract class AbstractComponent extends Object implements Component
Component.Identifier, Component.POV
Modifier | Constructor and Description |
---|---|
protected |
AbstractComponent(String name,
Component.Identifier id)
Protected constructor
|
Modifier and Type | Method and Description |
---|---|
float |
getDeadZone()
Returns the suggested dead zone for this axis.
|
(package private) float |
getEventValue() |
Component.Identifier |
getIdentifier()
Returns the type or identifier of the axis.
|
String |
getName()
Returns a human-readable name for this axis.
|
float |
getPollData()
Returns the data from the last time the control has been polled.
|
boolean |
isAnalog()
Returns whether or not the axis is analog, or false if it is digital.
|
protected abstract float |
poll() |
(package private) void |
resetHasPolled() |
(package private) void |
setEventValue(float event_value) |
(package private) void |
setPollData(float value) |
String |
toString()
Returns a non-localized string description of this axis.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isRelative
protected AbstractComponent(String name, Component.Identifier id)
name
- A name for the axispublic Component.Identifier getIdentifier()
getIdentifier
in interface Component
public boolean isAnalog()
public float getDeadZone()
getDeadZone
in interface Component
Component.getPollData()
public final float getPollData()
getPollData
in interface Component
Controller.poll()
final void resetHasPolled()
final void setPollData(float value)
final float getEventValue()
final void setEventValue(float event_value)
public String getName()
public String toString()
protected abstract float poll() throws IOException
IOException