wiiusej.wiiusejevents.wiiuseapievents
Class WiiUseApiEvent
java.lang.Object
wiiusej.wiiusejevents.GenericEvent
wiiusej.wiiusejevents.wiiuseapievents.WiiUseApiEvent
- Direct Known Subclasses:
- DisconnectionEvent, NunchukInsertedEvent, NunchukRemovedEvent, StatusEvent, WiimoteEvent
public abstract class WiiUseApiEvent
- extends GenericEvent
This class describes the structure of an event from the WiiUse API event.
- Author:
- guiguito
Constructor Summary |
WiiUseApiEvent(int id,
int type)
Construct the WiiUseApiEvent setting up the id. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NONE_EVENT
public static int NONE_EVENT
GENERIC_EVENT
public static int GENERIC_EVENT
STATUS_EVENT
public static int STATUS_EVENT
DISCONNECTION_EVENT
public static int DISCONNECTION_EVENT
WIIUSE_READ_DATA
public static int WIIUSE_READ_DATA
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
WiiUseApiEvent
public WiiUseApiEvent(int id,
int type)
- Construct the WiiUseApiEvent setting up the id.
- Parameters:
id
- the Wiimote idtype
- type of the event
getEventType
public int getEventType()
- Get the event type.
- Returns:
- the eventType
toString
public abstract java.lang.String toString()
- Specified by:
toString
in class GenericEvent