org.wiigee.event
Interface AccelerationListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
ProcessingUnit, TriggeredProcessingUnit

public interface AccelerationListener
extends java.util.EventListener

This interface has to be implemented if the application should react to pure acceleration data. This could be useful if you want to e.g. graphically display the acceleration data in your application.


Method Summary
 void accelerationReceived(AccelerationEvent event)
          This method would be called if a Device source has been accelerated.
 void motionStartReceived(MotionStartEvent event)
          This method would be called if a Device is in idle state and then a motion starts or if a Device is in motion and then the motion stops and the Device is in idle state.
 void motionStopReceived(MotionStopEvent event)
          This method would be called if a Device is in motion and then the motion stops and the Device is in idle state.
 

Method Detail

accelerationReceived

void accelerationReceived(AccelerationEvent event)
This method would be called if a Device source has been accelerated.

Parameters:
event - The acceleration representation as an event.

motionStartReceived

void motionStartReceived(MotionStartEvent event)
This method would be called if a Device is in idle state and then a motion starts or if a Device is in motion and then the motion stops and the Device is in idle state.

Parameters:
event - This is the event which contains if the Wiimote is now in motion or not.

motionStopReceived

void motionStopReceived(MotionStopEvent event)
This method would be called if a Device is in motion and then the motion stops and the Device is in idle state.

Parameters:
event - This is the event which contains if the Device is now in motion or not.