net.java.games.input
Class LinuxJoystickButton

java.lang.Object
  extended by net.java.games.input.AbstractComponent
      extended by net.java.games.input.LinuxJoystickButton
All Implemented Interfaces:
Component

final class LinuxJoystickButton
extends AbstractComponent

Represents a linux button from the joystick interface


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.java.games.input.Component
Component.Identifier, Component.POV
 
Constructor Summary
LinuxJoystickButton(Component.Identifier button_id)
           
 
Method Summary
 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, isAnalog, resetHasPolled, setEventValue, setPollData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinuxJoystickButton

public LinuxJoystickButton(Component.Identifier button_id)
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.


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