|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwiiremotej.event.WiiRemoteAdapter
public abstract class WiiRemoteAdapter
Implementation of WiiRemoteListener to conveniently implement just the methods you want. Contains all blank methods so you can just override what you need. Note that any time-intensive tasks should be executed in their own threads, as otherwise, they will block the event-dispatch thread.
Constructor Summary | |
---|---|
WiiRemoteAdapter()
|
Method Summary | |
---|---|
void |
accelerationInputReceived(WRAccelerationEvent evt)
Fires whenever data is received from the accelerometer. |
void |
buttonInputReceived(WRButtonEvent evt)
Fires whenever data is received from the buttons. |
void |
combinedInputReceived(WRCombinedEvent evt)
Fires whenever input is received on the regular input reports (0x30...0x3f). |
void |
disconnected()
Fires when the WiiRemote disconnects. |
void |
extensionConnected(WiiRemoteExtension extension)
Fires when an extension is connected and properly setup. |
void |
extensionDisconnected(WiiRemoteExtension extension)
Fires when an extension disconnects. |
void |
extensionInputReceived(WRExtensionEvent evt)
Fires whenever there's input from the extension port. |
void |
extensionPartiallyInserted()
Fires when an extension is partially inserted. |
void |
extensionUnknown()
Fires when an extension of an unknown type connects. |
void |
IRInputReceived(WRIREvent evt)
Fires whenever data is received from IR sensor. |
void |
statusReported(WRStatusEvent evt)
Fires whenever status data is received. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WiiRemoteAdapter()
Method Detail |
---|
public void buttonInputReceived(WRButtonEvent evt)
WiiRemoteListener
buttonInputReceived
in interface WiiRemoteListener
evt
- the WRButtonEvent containing information on the buttons pressed.WiiRemoteListener.combinedInputReceived(WRCombinedEvent)
public void statusReported(WRStatusEvent evt)
WiiRemoteListener
statusReported
in interface WiiRemoteListener
evt
- the WRStatusEvent containing status information.public void accelerationInputReceived(WRAccelerationEvent evt)
WiiRemoteListener
accelerationInputReceived
in interface WiiRemoteListener
evt
- the WRAccelerationEvent containing acceleration information.WiiRemoteListener.combinedInputReceived(WRCombinedEvent)
public void IRInputReceived(WRIREvent evt)
WiiRemoteListener
IRInputReceived
in interface WiiRemoteListener
evt
- the WRIREvent containing acceleration information.WiiRemoteListener.combinedInputReceived(WRCombinedEvent)
public void extensionInputReceived(WRExtensionEvent evt)
WiiRemoteListener
extensionInputReceived
in interface WiiRemoteListener
evt
- the WRExtensionEvent containing input from the extension port.WiiRemoteListener.combinedInputReceived(WRCombinedEvent)
public void extensionConnected(WiiRemoteExtension extension)
WiiRemoteListener
extensionConnected
in interface WiiRemoteListener
extension
- the extension that was connected.public void extensionPartiallyInserted()
WiiRemoteListener
extensionPartiallyInserted
in interface WiiRemoteListener
public void extensionUnknown()
WiiRemoteListener
extensionUnknown
in interface WiiRemoteListener
public void extensionDisconnected(WiiRemoteExtension extension)
WiiRemoteListener
extensionDisconnected
in interface WiiRemoteListener
extension
- the extension that was disconnected.public void combinedInputReceived(WRCombinedEvent evt)
WiiRemoteListener
combinedInputReceived
in interface WiiRemoteListener
evt
- a combined event, containing button press, acceleration, IR, and extension events.WiiRemoteListener.buttonInputReceived(WRButtonEvent)
,
WiiRemoteListener.accelerationInputReceived(WRAccelerationEvent)
,
WiiRemoteListener.IRInputReceived(WRIREvent)
,
WiiRemoteListener.extensionInputReceived(WRExtensionEvent)
public void disconnected()
WiiRemoteListener
disconnected
in interface WiiRemoteListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |