Package net.java.games.input
Class LinuxJoystickPOV
java.lang.Object
net.java.games.input.AbstractComponent
net.java.games.input.LinuxJoystickPOV
- All Implemented Interfaces:
Component
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.java.games.input.Component
Component.Identifier, Component.POV
-
Method Summary
Modifier and TypeMethodDescriptionprotected net.java.games.input.LinuxJoystickAxis
getXAxis()
protected net.java.games.input.LinuxJoystickAxis
getYAxis()
final boolean
isAnalog()
Returns whether or not the axis is analog, or false if it is digital.final boolean
Returnstrue
if data returned frompoll
is relative to the last call, orfalse
if data is absolute.protected final float
poll()
protected void
Methods inherited from class net.java.games.input.AbstractComponent
getDeadZone, getIdentifier, getName, getPollData, toString
-
Method Details
-
getXAxis
protected net.java.games.input.LinuxJoystickAxis getXAxis() -
getYAxis
protected net.java.games.input.LinuxJoystickAxis getYAxis() -
updateValue
protected void updateValue() -
isRelative
public final boolean isRelative()Description copied from interface:Component
Returnstrue
if data returned frompoll
is relative to the last call, orfalse
if data is absolute. -
isAnalog
public final boolean isAnalog()Description copied from class:AbstractComponent
Returns whether or not the axis is analog, or false if it is digital.- Specified by:
isAnalog
in interfaceComponent
- Overrides:
isAnalog
in classAbstractComponent
- Returns:
- false by default, can be overridden
-
poll
- Specified by:
poll
in classAbstractComponent
- Throws:
IOException
-