org.jagatoo.input.events
Class ControllerAxisChangedEvent

java.lang.Object
  extended by org.jagatoo.input.events.InputEvent
      extended by org.jagatoo.input.events.ControllerEvent
          extended by org.jagatoo.input.events.ControllerAxisChangedEvent

public class ControllerAxisChangedEvent
extends ControllerEvent

Stores the details associated with a controller event.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jagatoo.input.events.ControllerEvent
ControllerEvent.SubType
 
Nested classes/interfaces inherited from class org.jagatoo.input.events.InputEvent
InputEvent.Type
 
Field Summary
protected  ControllerAxis axis
           
protected  float axisDelta
          The Axis-Delta X value.
 
Constructor Summary
ControllerAxisChangedEvent()
          Creates a ControllerAxisChangedEvent with default values.
ControllerAxisChangedEvent(Controller controller, ControllerAxis axis, float axisDelta, long when, long lastWhen)
          Create a new event.
 
Method Summary
 ControllerAxis getAxis()
           
 float getAxisDelta()
          
 float getAxisValue()
           
 void set(ControllerAxisChangedEvent e)
          Sets the fields of this ControllerAxisChangedEvent to match the given event.
 void set(Controller controller, ControllerAxis axis, float axisDelta, long when, long lastWhen)
          
 java.lang.String toString()
          
 
Methods inherited from class org.jagatoo.input.events.ControllerEvent
getController, getSubType, set, set
 
Methods inherited from class org.jagatoo.input.events.InputEvent
getComponent, getLastWhen, getType, getWhen, set, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

axis

protected ControllerAxis axis

axisDelta

protected float axisDelta
The Axis-Delta X value.

Constructor Detail

ControllerAxisChangedEvent

public ControllerAxisChangedEvent()
Creates a ControllerAxisChangedEvent with default values.


ControllerAxisChangedEvent

public ControllerAxisChangedEvent(Controller controller,
                                  ControllerAxis axis,
                                  float axisDelta,
                                  long when,
                                  long lastWhen)
Create a new event.

Parameters:
type -
controller -
axis -
axisDelta -
when -
lastWhen -
Method Detail

getAxis

public final ControllerAxis getAxis()

getAxisValue

public final float getAxisValue()

getAxisDelta

public final float getAxisDelta()


toString

public java.lang.String toString()

Specified by:
toString in class ControllerEvent
Returns:
in formation about this InputEvent as a String.

set

public void set(Controller controller,
                ControllerAxis axis,
                float axisDelta,
                long when,
                long lastWhen)


set

public void set(ControllerAxisChangedEvent e)
Sets the fields of this ControllerAxisChangedEvent to match the given event.