wiiusej.wiiuseapievents
Class WiiUseApiEvent
java.lang.Object
wiiusej.wiiuseapievents.WiimoteEvent
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
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 |
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
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 WiimoteEvent