org.wiigee.event
Class RotationEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.wiigee.event.RotationEvent
All Implemented Interfaces:
java.io.Serializable

public class RotationEvent
extends java.util.EventObject

A RotationEvents contains the current relative rotation to the last given reset position. If the device has never been resetted before, the last position is the Wiimotes initial position. This event contains all three angles - pitch, yaw, roll - which are only determined using the Wii Motion Plus extension. There wouldn't be a RotationEvent without this extension.

See Also:
Serialized Form

Field Summary
protected  double pitch
           
protected  double roll
           
protected  double yaw
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RotationEvent(org.wiigee.device.Device source, double pitch, double roll, double yaw)
           
 
Method Summary
 double getPitch()
           
 double getRoll()
           
 double getYaw()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pitch

protected double pitch

yaw

protected double yaw

roll

protected double roll
Constructor Detail

RotationEvent

public RotationEvent(org.wiigee.device.Device source,
                     double pitch,
                     double roll,
                     double yaw)
Method Detail

getPitch

public double getPitch()

getYaw

public double getYaw()

getRoll

public double getRoll()