Component.Identifier, Component.POV| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractComponent(java.lang.String name,
Component.Identifier id) |
Protected constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
float |
getDeadZone() |
Returns the suggested dead zone for this axis.
|
Component.Identifier |
getIdentifier() |
Returns the type or identifier of the axis.
|
java.lang.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() |
|
java.lang.String |
toString() |
Returns a non-localized string description of this axis.
|
isRelativeprotected AbstractComponent(java.lang.String name,
Component.Identifier id)
name - A name for the axispublic Component.Identifier getIdentifier()
getIdentifier in interface Componentpublic boolean isAnalog()
public float getDeadZone()
getDeadZone in interface ComponentComponent.getPollData()public final float getPollData()
getPollData in interface ComponentController.poll()public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Objectprotected abstract float poll()
throws java.io.IOException
java.io.IOExceptionCopyright © 2018. All rights reserved.