org.vigia.test
Class CoordinatesPrinter

java.lang.Object
  extended by org.vigia.test.CoordinatesPrinter
All Implemented Interfaces:
IRListener

public class CoordinatesPrinter
extends java.lang.Object
implements IRListener

Printer of the Wiimote coordinates.

Author:
Ada

Constructor Summary
CoordinatesPrinter()
           
 
Method Summary
 void onIREvent(Coordinates c, int xVRes, int yVRes)
          Actions to do when the Wiimote detects a change in the position of the infrared leds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoordinatesPrinter

public CoordinatesPrinter()
Method Detail

onIREvent

public void onIREvent(Coordinates c,
                      int xVRes,
                      int yVRes)
               throws VigiaClientException
Description copied from interface: IRListener
Actions to do when the Wiimote detects a change in the position of the infrared leds.

Specified by:
onIREvent in interface IRListener
Parameters:
c - the new coordinates of the Wiimote.
xVRes - IR virtual screen x resolution.
yVRes - IR virtual screen y resolution.
Throws:
VigiaClientException - error from the listener.
See Also:
IRListener.onIREvent(org.vigia.client.driver.Coordinates, int, int)