org.wiigee.control
Class WiimoteWiigee

java.lang.Object
  extended by org.wiigee.control.Wiigee
      extended by org.wiigee.control.WiimoteWiigee

public class WiimoteWiigee
extends org.wiigee.control.Wiigee


Field Summary
protected static java.lang.String pluginreleasedate
           
protected static java.lang.String pluginversion
           
 
Fields inherited from class org.wiigee.control.Wiigee
releasedate, version
 
Constructor Summary
WiimoteWiigee()
           
 
Method Summary
 void addAccelerationFilter(org.wiigee.filter.Filter filter)
           
 void addDeviceListener(org.wiigee.event.AccelerationListener listener)
           
 void addGestureListener(org.wiigee.event.GestureListener listener)
           
 Wiimote getDevice()
          Automatically discovers Wiimotes nearby and connects to the first responding Wiimote visible.
 Wiimote[] getDevices()
          Returns an array of all discovered Wiimotes.
 int getNumberOfDevices()
          Returns the number of wiimotes discovered.
 void setCloseGestureButton(int b)
          Sets the CloseGesturebutton for all wiimotes;
 void setRecognitionButton(int b)
          Sets the Recognitionbutton for all wiimotes;
 void setTrainButton(int b)
          Sets the Trainbutton for all wiimotes;
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pluginversion

protected static java.lang.String pluginversion

pluginreleasedate

protected static java.lang.String pluginreleasedate
Constructor Detail

WiimoteWiigee

public WiimoteWiigee()
Method Detail

getDevice

public Wiimote getDevice()
                  throws java.io.IOException
Automatically discovers Wiimotes nearby and connects to the first responding Wiimote visible. For multiple managed instances of the Wiimote, please use getDevices().

Returns:
First visible Wiimote. Null otherwise.
Throws:
java.io.IOException

getDevices

public Wiimote[] getDevices()
                     throws java.io.IOException
Returns an array of all discovered Wiimotes. The count of Devices depends on your computers bluetooth capabilities. Usually up to 7 Wiimotes/Devices can be connected.

Returns:
Array of discovered wiimotes or null if none discoverd.
Throws:
java.io.IOException

getNumberOfDevices

public int getNumberOfDevices()
Returns the number of wiimotes discovered.

Returns:
Number of wiimotes discovered.

setTrainButton

public void setTrainButton(int b)
Sets the Trainbutton for all wiimotes;

Parameters:
b - Button encoding, see static Wiimote values

setRecognitionButton

public void setRecognitionButton(int b)
Sets the Recognitionbutton for all wiimotes;

Parameters:
b - Button encoding, see static Wiimote values

setCloseGestureButton

public void setCloseGestureButton(int b)
Sets the CloseGesturebutton for all wiimotes;

Parameters:
b - Button encoding, see static Wiimote values

addDeviceListener

public void addDeviceListener(org.wiigee.event.AccelerationListener listener)

addGestureListener

public void addGestureListener(org.wiigee.event.GestureListener listener)

addAccelerationFilter

public void addAccelerationFilter(org.wiigee.filter.Filter filter)