|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
wiiusej.WiiUseApiManager
public class WiiUseApiManager
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
WiiUseApiManager()
|
|
| Method Summary | |
|---|---|
void |
activateIRTRacking(int id)
Activate IR Tracking for the wiimotes with the given id. |
void |
activateMotionSensing(int id)
Activate IR Tracking of the wiimotes with the given id. |
void |
activateRumble(int id)
Activate the rumble for the wiimotes with the given id. |
void |
addWiiUseApiListener(WiiUseApiListener listener)
|
void |
closeConnection(int id)
Ask the thread to close a connection. |
int |
connectWiimotes()
Connect wiimote and get the nu ber of wiimotes connected. |
void |
deactivateIRTRacking(int id)
Deactivate IR Tracking for the wiimotes with the given id. |
void |
deactivateMotionSensing(int id)
|
void |
deactivateRumble(int id)
Deactivate the rumble for the wiimotes with the given id. |
static WiiUseApiManager |
getInstance()
|
int |
getNbConnectedWiimotes()
Get the number of wiimotes connected. |
void |
getStatus(int id)
|
WiiUseApiListener[] |
getWiiUseApiListeners()
|
boolean |
loadLibrary()
Load the wiimote library. |
void |
notifyWiiUseApiListener(WiiMoteEvent evt)
|
void |
removeWiiUseApiListener(WiiUseApiListener listener)
|
void |
run()
|
void |
shutdown()
Stop thread and shutdown wiiuse Api. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WiiUseApiManager()
| Method Detail |
|---|
public static WiiUseApiManager getInstance()
public boolean loadLibrary()
public int connectWiimotes()
public void closeConnection(int id)
id - id of the wiimote to disconnect.public int getNbConnectedWiimotes()
public void shutdown()
public void activateRumble(int id)
id - the id of the wiimote.public void deactivateRumble(int id)
id - the id of the wiimote.public void activateIRTRacking(int id)
id - the id of the wiimote.public void deactivateIRTRacking(int id)
id - the id of the wiimote.public void activateMotionSensing(int id)
id - the id of the wiimote.public void deactivateMotionSensing(int id)
public void getStatus(int id)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void addWiiUseApiListener(WiiUseApiListener listener)
public void removeWiiUseApiListener(WiiUseApiListener listener)
public WiiUseApiListener[] getWiiUseApiListeners()
public void notifyWiiUseApiListener(WiiMoteEvent evt)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||