org.jagatoo.input.events
Class ControllerAxisChangedEvent
java.lang.Object
org.jagatoo.input.events.InputEvent
org.jagatoo.input.events.ControllerEvent
org.jagatoo.input.events.ControllerAxisChangedEvent
public class ControllerAxisChangedEvent
- extends ControllerEvent
Stores the details associated with a controller event.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
axis
protected ControllerAxis axis
axisDelta
protected float axisDelta
- The Axis-Delta X value.
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 -
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.