net.java.games.input
Class AWTMouse.Button

java.lang.Object
  extended by net.java.games.input.AbstractComponent
      extended by net.java.games.input.AWTMouse.Button
All Implemented Interfaces:
Component
Enclosing class:
AWTMouse

static final class AWTMouse.Button
extends AbstractComponent


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.java.games.input.Component
Component.Identifier, Component.POV
 
Constructor Summary
AWTMouse.Button(Component.Identifier.Button button_id)
           
 
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()
           
protected  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

AWTMouse.Button

public AWTMouse.Button(Component.Identifier.Button button_id)
Method Detail

setValue

protected final void setValue(float value)

poll

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

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

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.