wiiusej.test
Class Tests

java.lang.Object
  extended by wiiusej.test.Tests
All Implemented Interfaces:
java.util.EventListener, WiimoteListener

public class Tests
extends java.lang.Object
implements WiimoteListener

This class used to test WiiuseJ in text mode.

Author:
guiguito

Field Summary
private static int DISPLAY_EACH_VALUE
           
(package private)  int dump
           
private static int DUMP
           
private static int MOVE_MOUSE
           
(package private)  java.awt.Robot robot
           
private static int TEST_LEDS
           
private  Wiimote wiimote
           
 
Constructor Summary
Tests(Wiimote wim)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void onButtonsEvent(WiimoteButtonsEvent e)
          Method called on a button Event.
 void onDisconnectionEvent(DisconnectionEvent e)
          This is the method called when a disconnection event occurs.
 void onExpansionEvent(ExpansionEvent e)
          Method called when an expansion event occurs.
 void onIrEvent(IREvent e)
          Method called when an IR event occurs.
 void onMotionSensingEvent(MotionSensingEvent e)
          Method called when a motion sensing event occurs.
 void onNunchukInsertedEvent(NunchukInsertedEvent e)
          This is the method called when a NunchukInsertedEvent occurs.
 void onNunchukRemovedEvent(NunchukRemovedEvent e)
          This is the method called when a NunchukRemovedEvent occurs.
 void onStatusEvent(StatusEvent e)
          Method called on a status event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

robot

java.awt.Robot robot

DISPLAY_EACH_VALUE

private static int DISPLAY_EACH_VALUE

DUMP

private static int DUMP

MOVE_MOUSE

private static int MOVE_MOUSE

TEST_LEDS

private static int TEST_LEDS

wiimote

private Wiimote wiimote

dump

int dump
Constructor Detail

Tests

public Tests(Wiimote wim)
Method Detail

onButtonsEvent

public void onButtonsEvent(WiimoteButtonsEvent e)
Description copied from interface: WiimoteListener
Method called on a button Event.

Specified by:
onButtonsEvent in interface WiimoteListener
Parameters:
e - the buttonEvent with the last informations about the buttons of the wiimote.

onIrEvent

public void onIrEvent(IREvent e)
Description copied from interface: WiimoteListener
Method called when an IR event occurs.

Specified by:
onIrEvent in interface WiimoteListener
Parameters:
e - the IREvent with the IR points seen.

onMotionSensingEvent

public void onMotionSensingEvent(MotionSensingEvent e)
Description copied from interface: WiimoteListener
Method called when a motion sensing event occurs.

Specified by:
onMotionSensingEvent in interface WiimoteListener
Parameters:
e - the motion sensing event with orientation and acceleration.

onExpansionEvent

public void onExpansionEvent(ExpansionEvent e)
Description copied from interface: WiimoteListener
Method called when an expansion event occurs.

Specified by:
onExpansionEvent in interface WiimoteListener
Parameters:
e - the expansion event occured.

onStatusEvent

public void onStatusEvent(StatusEvent e)
Description copied from interface: WiimoteListener
Method called on a status event. A status event occurs when : - we ask it - an expansion controller has been plugged - an expansion controller has been unplugged This is where you can get the different values of the parameters setup on your wiimote.

Specified by:
onStatusEvent in interface WiimoteListener
Parameters:
e - the status event.

onDisconnectionEvent

public void onDisconnectionEvent(DisconnectionEvent e)
Description copied from interface: WiimoteListener
This is the method called when a disconnection event occurs. A disconnection event happens when : - there are no battery left - the wiimote has just been turned off - the connection is dropped

Specified by:
onDisconnectionEvent in interface WiimoteListener
Parameters:
e - the disconnection event.

onNunchukInsertedEvent

public void onNunchukInsertedEvent(NunchukInsertedEvent e)
Description copied from interface: WiimoteListener
This is the method called when a NunchukInsertedEvent occurs.

Specified by:
onNunchukInsertedEvent in interface WiimoteListener
Parameters:
e - the NunchukInsertedEvent.

onNunchukRemovedEvent

public void onNunchukRemovedEvent(NunchukRemovedEvent e)
Description copied from interface: WiimoteListener
This is the method called when a NunchukRemovedEvent occurs.

Specified by:
onNunchukRemovedEvent in interface WiimoteListener
Parameters:
e - the NunchukRemovedEvent.

main

public static void main(java.lang.String[] args)
Parameters:
args -