Package net.java.games.input
Class LinuxJoystickPOV
- java.lang.Object
-
- net.java.games.input.AbstractComponent
-
- net.java.games.input.LinuxJoystickPOV
-
- All Implemented Interfaces:
Component
public class LinuxJoystickPOV extends AbstractComponent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.java.games.input.Component
Component.Identifier, Component.POV
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected net.java.games.input.LinuxJoystickAxisgetXAxis()protected net.java.games.input.LinuxJoystickAxisgetYAxis()booleanisAnalog()Returns whether or not the axis is analog, or false if it is digital.booleanisRelative()Returnstrueif data returned frompollis relative to the last call, orfalseif data is absolute.protected floatpoll()protected voidupdateValue()-
Methods inherited from class net.java.games.input.AbstractComponent
getDeadZone, getIdentifier, getName, getPollData, toString
-
-
-
-
Method Detail
-
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:ComponentReturnstrueif data returned frompollis relative to the last call, orfalseif data is absolute.
-
isAnalog
public final boolean isAnalog()
Description copied from class:AbstractComponentReturns whether or not the axis is analog, or false if it is digital.- Specified by:
isAnalogin interfaceComponent- Overrides:
isAnalogin classAbstractComponent- Returns:
- false by default, can be overridden
-
poll
protected final float poll() throws java.io.IOException- Specified by:
pollin classAbstractComponent- Throws:
java.io.IOException
-
-