net.java.games.input
Class LinuxJoystickAxis

java.lang.Object
  extended by net.java.games.input.AbstractComponent
      extended by net.java.games.input.LinuxJoystickAxis
All Implemented Interfaces:
Component
Direct Known Subclasses:
LinuxJoystickPOV

 class LinuxJoystickAxis
extends AbstractComponent

Represents a linux Axis


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.java.games.input.Component
Component.Identifier, Component.POV
 
Constructor Summary
LinuxJoystickAxis(Component.Identifier.Axis axis_id)
           
LinuxJoystickAxis(Component.Identifier.Axis axis_id, boolean analog)
           
 
Method Summary
 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()
           
(package private)  void setValue(float value)
           
 
Methods inherited from class net.java.games.input.AbstractComponent
getDeadZone, getEventValue, getIdentifier, getName, getPollData, resetHasPolled, setEventValue, setPollData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinuxJoystickAxis

public LinuxJoystickAxis(Component.Identifier.Axis axis_id)

LinuxJoystickAxis

public LinuxJoystickAxis(Component.Identifier.Axis axis_id,
                         boolean analog)
Method Detail

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

setValue

final void setValue(float value)

poll

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