at.wisch.joystick.event
Class ControllerPovEvent
java.lang.Object
org.lwjgl.input.ControllerEvent
at.wisch.joystick.event.AdvancedControllerEvent
at.wisch.joystick.event.ControllerPovEvent
public class ControllerPovEvent
- extends AdvancedControllerEvent
The Class ControllerPovEvent. If this event occurs, it means that a POV has changed its direction.
- Author:
- Martin Wischenbart
- See Also:
ControllerEventManager
Constructor Summary |
ControllerPovEvent(Controller source,
long timeStamp,
int povIndex,
int povValue)
Instantiates a new ControllerPovEvent. |
Method Summary |
float |
getPovValue()
Gets the POV direction value. |
java.lang.String |
toString()
Returns a String describing the ControllerPovEvent. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ControllerPovEvent
public ControllerPovEvent(Controller source,
long timeStamp,
int povIndex,
int povValue)
- Instantiates a new ControllerPovEvent.
- Parameters:
source
- the Controller that generated the eventtimeStamp
- the timestamp given for this eventpovIndex
- the index of the POV that changed its statepovValue
- the new POV direction
getPovValue
public float getPovValue()
- Gets the POV direction value. Use getControlIndex() to get the POV index.
- Returns:
- the POV direction
- See Also:
ControllerEvent.getControlIndex()
toString
public java.lang.String toString()
- Returns a String describing the ControllerPovEvent. This String contains the Joystick index, the POV index and the new POV direction value.
- Specified by:
toString
in class AdvancedControllerEvent
- Returns:
- a String describing the ControllerPovEvent