public class Wii extends Service implements wiiusej.wiiusejevents.utils.WiimoteListener, jssc.SerialPortEventListener
Modifier and Type | Class and Description |
---|---|
static class |
Wii.Blah |
static class |
Wii.IRData |
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log |
cfgDir, dnaPool, MESSAGE_RECORDING_FORMAT_BINARY, MESSAGE_RECORDING_FORMAT_XML
Constructor and Description |
---|
Wii(java.lang.String n) |
Modifier and Type | Method and Description |
---|---|
void |
activateIRTRacking() |
void |
activateListening() |
void |
activateMotionSensing() |
static ServiceType |
getMetaData()
This static method returns all the details of the class without it having
to be constructed.
|
wiiusej.Wiimote[] |
getWiimotes() |
wiiusej.Wiimote[] |
getWiimotes(int n,
boolean rumble) |
boolean |
initSerial() |
static void |
main(java.lang.String[] args) |
void |
onButtonDownJustPressed() |
void |
onButtonLeftJustPressed() |
void |
onButtonRightJustPressed() |
void |
onButtonsEvent(wiiusej.wiiusejevents.physicalevents.WiimoteButtonsEvent arg0) |
void |
onButtonUpJustPressed() |
void |
onClassicControllerInsertedEvent(wiiusej.wiiusejevents.wiiuseapievents.ClassicControllerInsertedEvent arg0) |
void |
onClassicControllerRemovedEvent(wiiusej.wiiusejevents.wiiuseapievents.ClassicControllerRemovedEvent arg0) |
void |
onDisconnectionEvent(wiiusej.wiiusejevents.wiiuseapievents.DisconnectionEvent arg0) |
void |
onExpansionEvent(wiiusej.wiiusejevents.physicalevents.ExpansionEvent arg0) |
void |
onGuitarHeroInsertedEvent(wiiusej.wiiusejevents.wiiuseapievents.GuitarHeroInsertedEvent arg0) |
void |
onGuitarHeroRemovedEvent(wiiusej.wiiusejevents.wiiuseapievents.GuitarHeroRemovedEvent arg0) |
void |
onIrEvent(wiiusej.wiiusejevents.physicalevents.IREvent arg0) |
void |
onMotionSensingEvent(wiiusej.wiiusejevents.physicalevents.MotionSensingEvent arg0) |
void |
onNunchukInsertedEvent(wiiusej.wiiusejevents.wiiuseapievents.NunchukInsertedEvent arg0) |
void |
onNunchukRemovedEvent(wiiusej.wiiusejevents.wiiuseapievents.NunchukRemovedEvent arg0) |
void |
onStatusEvent(wiiusej.wiiusejevents.wiiuseapievents.StatusEvent arg0) |
Wii.IRData |
publishIR(Wii.IRData ir) |
void |
sendSerial(int data) |
void |
serialEvent(jssc.SerialPortEvent arg0) |
void |
setIrSensitivity(int level) |
void |
setLeds(boolean l1,
boolean l2,
boolean l3,
boolean l4) |
void |
setSensorBarAboveScreen() |
void |
setSensorBarBelowScreen() |
addListener, addListener, addTask, addTask, addTask, addTaskOneShot, allowDisplay, allowDisplay, attach, attach, broadcastState, buildDna, buildDna, buildDnaKeys, buildDnaNames, clearLastError, close, containsTask, copyShallowFrom, createPeer, createPeer, createRootReserved, detach, detach, detach, echoHeartbeat, error, error, error, getAttached, getCfgDir, getComm, getDeclaredMethodNames, getDeclaredMethods, getDescription, getDna, getDnaString, getHostName, getInbox, getInstanceId, getIntanceName, getInterfaceSet, getLastError, getMessageSet, getMetaData, getMethodMap, getMethodNames, getMethods, getMethodToolTip, getMsg, getName, getNotifyList, getNotifyListKeySet, getOutbox, getPeerKey, getPeerName, getServiceResourceFile, getSimpleName, getTasks, getThisThread, getType, hasError, hasPeers, help, help, in, info, info, invoke, invoke, invoke, invokeOn, isAttached, isAttached, isLocal, isReady, isRunning, isRuntime, isVirtual, load, load, logTimeEnable, mergeDna, mergeDna, mergePeerDna, movePeerDna, out, out, preProcessHook, preRoutingHook, publishError, publishQueueStats, publishState, publishStats, publishStatus, purgeTask, purgeTasks, releasePeers, releaseService, removeAllListeners, removeListener, requiresSecurity, reserve, reserve, reserveRoot, reserveRoot, reserveRootAs, run, save, save, save, send, send, send, send, sendBlocking, sendBlocking, sendBlocking, sendBlocking, sendPeer, setInstanceId, setName, setPeer, setSecurityProvider, setState, setThisThread, setVirtual, sleep, stackToString, startHeartbeat, startPeer, startPeer, startRecording, startService, stopHeartbeat, stopMsgRecording, stopService, subscribe, subscribe, subscribe, toString, unsubscribe, unsubscribe, unsubscribe, updateStats, warn, warn
public static void main(java.lang.String[] args)
public void activateIRTRacking()
public void activateListening()
public void activateMotionSensing()
public wiiusej.Wiimote[] getWiimotes()
public wiiusej.Wiimote[] getWiimotes(int n, boolean rumble)
public boolean initSerial()
public void onButtonDownJustPressed()
public void onButtonLeftJustPressed()
public void onButtonRightJustPressed()
public void onButtonsEvent(wiiusej.wiiusejevents.physicalevents.WiimoteButtonsEvent arg0)
onButtonsEvent
in interface wiiusej.wiiusejevents.utils.WiimoteListener
public void onButtonUpJustPressed()
public void onClassicControllerInsertedEvent(wiiusej.wiiusejevents.wiiuseapievents.ClassicControllerInsertedEvent arg0)
onClassicControllerInsertedEvent
in interface wiiusej.wiiusejevents.utils.WiimoteListener
public void onClassicControllerRemovedEvent(wiiusej.wiiusejevents.wiiuseapievents.ClassicControllerRemovedEvent arg0)
onClassicControllerRemovedEvent
in interface wiiusej.wiiusejevents.utils.WiimoteListener
public void onDisconnectionEvent(wiiusej.wiiusejevents.wiiuseapievents.DisconnectionEvent arg0)
onDisconnectionEvent
in interface wiiusej.wiiusejevents.utils.WiimoteListener
public void onExpansionEvent(wiiusej.wiiusejevents.physicalevents.ExpansionEvent arg0)
onExpansionEvent
in interface wiiusej.wiiusejevents.utils.WiimoteListener
public void onGuitarHeroInsertedEvent(wiiusej.wiiusejevents.wiiuseapievents.GuitarHeroInsertedEvent arg0)
onGuitarHeroInsertedEvent
in interface wiiusej.wiiusejevents.utils.WiimoteListener
public void onGuitarHeroRemovedEvent(wiiusej.wiiusejevents.wiiuseapievents.GuitarHeroRemovedEvent arg0)
onGuitarHeroRemovedEvent
in interface wiiusej.wiiusejevents.utils.WiimoteListener
public void onIrEvent(wiiusej.wiiusejevents.physicalevents.IREvent arg0)
onIrEvent
in interface wiiusej.wiiusejevents.utils.WiimoteListener
public void onMotionSensingEvent(wiiusej.wiiusejevents.physicalevents.MotionSensingEvent arg0)
onMotionSensingEvent
in interface wiiusej.wiiusejevents.utils.WiimoteListener
public void onNunchukInsertedEvent(wiiusej.wiiusejevents.wiiuseapievents.NunchukInsertedEvent arg0)
onNunchukInsertedEvent
in interface wiiusej.wiiusejevents.utils.WiimoteListener
public void onNunchukRemovedEvent(wiiusej.wiiusejevents.wiiuseapievents.NunchukRemovedEvent arg0)
onNunchukRemovedEvent
in interface wiiusej.wiiusejevents.utils.WiimoteListener
public void onStatusEvent(wiiusej.wiiusejevents.wiiuseapievents.StatusEvent arg0)
onStatusEvent
in interface wiiusej.wiiusejevents.utils.WiimoteListener
public Wii.IRData publishIR(Wii.IRData ir)
public void sendSerial(int data)
public void serialEvent(jssc.SerialPortEvent arg0)
serialEvent
in interface jssc.SerialPortEventListener
public void setIrSensitivity(int level)
public void setLeds(boolean l1, boolean l2, boolean l3, boolean l4)
public void setSensorBarAboveScreen()
public void setSensorBarBelowScreen()
public static ServiceType getMetaData()