wiiusej.wiiuseapievents
Class WiiUseApiEvent

java.lang.Object
  extended by wiiusej.wiiuseapievents.WiimoteEvent
      extended by wiiusej.wiiuseapievents.WiiUseApiEvent
Direct Known Subclasses:
DisconnectionEvent, GenericEvent, StatusEvent

public abstract class WiiUseApiEvent
extends WiimoteEvent

This class describes the structure of an event from the WiiUse API event.

Author:
guiguito

Field Summary
static int DISCONNECTION_EVENT
           
private  int eventType
           
static int GENERIC_EVENT
           
static int STATUS_EVENT
           
static int WIIUSE_CLASSIC_CTRL_INSERTED
           
static int WIIUSE_CLASSIC_CTRL_REMOVED
           
static int WIIUSE_GUITAR_HERO_3_CTRL_INSERTED
           
static int WIIUSE_GUITAR_HERO_3_CTRL_REMOVED
           
static int WIIUSE_NUNCHUK_INSERTED
           
static int WIIUSE_NUNCHUK_REMOVED
           
 
Constructor Summary
WiiUseApiEvent(int id, int type)
          Construct the WiiUseApiEvent setting up the id.
 
Method Summary
 int getEventType()
          Get the event type.
abstract  java.lang.String toString()
           
 
Methods inherited from class wiiusej.wiiuseapievents.WiimoteEvent
getWiimoteId, setWiimoteId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GENERIC_EVENT

public static int GENERIC_EVENT

STATUS_EVENT

public static int STATUS_EVENT

DISCONNECTION_EVENT

public static int DISCONNECTION_EVENT

WIIUSE_NUNCHUK_INSERTED

public static int WIIUSE_NUNCHUK_INSERTED

WIIUSE_NUNCHUK_REMOVED

public static int WIIUSE_NUNCHUK_REMOVED

WIIUSE_CLASSIC_CTRL_INSERTED

public static int WIIUSE_CLASSIC_CTRL_INSERTED

WIIUSE_CLASSIC_CTRL_REMOVED

public static int WIIUSE_CLASSIC_CTRL_REMOVED

WIIUSE_GUITAR_HERO_3_CTRL_INSERTED

public static int WIIUSE_GUITAR_HERO_3_CTRL_INSERTED

WIIUSE_GUITAR_HERO_3_CTRL_REMOVED

public static int WIIUSE_GUITAR_HERO_3_CTRL_REMOVED

eventType

private int eventType
Constructor Detail

WiiUseApiEvent

public WiiUseApiEvent(int id,
                      int type)
Construct the WiiUseApiEvent setting up the id.

Parameters:
id - the Wiimote id
type - type of the event
Method Detail

getEventType

public int getEventType()
Get the event type.

Returns:
the eventType

toString

public abstract java.lang.String toString()
Specified by:
toString in class WiimoteEvent