net.java.games.input
Class LinuxJoystickPOV

java.lang.Object
  extended by net.java.games.input.AbstractComponent
      extended by 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
protected  net.java.games.input.LinuxJoystickAxis getXAxis()
           
protected  net.java.games.input.LinuxJoystickAxis getYAxis()
           
 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()
           
protected  void updateValue()
           
 
Methods inherited from class net.java.games.input.AbstractComponent
getDeadZone, getIdentifier, getName, getPollData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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: Component
Returns true if data returned from poll is relative to the last call, or false 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 interface Component
Overrides:
isAnalog in class AbstractComponent
Returns:
false by default, can be overridden

poll

protected final float poll()
                    throws IOException
Specified by:
poll in class AbstractComponent
Throws:
IOException