wiiremotej.event
Interface BalanceBoardListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
BalanceBoardAdapter

public interface BalanceBoardListener
extends java.util.EventListener

Listener interface for the balance baord. Contains listener information for all board channels. Note that any time-intensive tasks should be executed in their own threads, as otherwise, they will block the event-dispatch thread.


Method Summary
 void buttonInputReceived(BBButtonEvent evt)
          Fires whenever data is received from the button.
 void combinedInputReceived(BBCombinedEvent evt)
          Fires whenever input is received on the regular input reports (0x30...0x3f).
 void disconnected()
          Fires when the BalanceBoard disconnects.
 void massInputReceived(BBMassEvent evt)
          Fires whenever data is received from the mass sensors.
 void statusReported(BBStatusEvent evt)
          Fires whenever status data is received.
 

Method Detail

buttonInputReceived

void buttonInputReceived(BBButtonEvent evt)
Fires whenever data is received from the button.

Parameters:
evt - the BBButtonEvent containing information on the button.
See Also:
combinedInputReceived(BBCombinedEvent)

statusReported

void statusReported(BBStatusEvent evt)
Fires whenever status data is received.

Parameters:
evt - the BBStatusEvent containing status information.

massInputReceived

void massInputReceived(BBMassEvent evt)
Fires whenever data is received from the mass sensors.

Parameters:
evt - the BBMassEvent containing mass information.
See Also:
combinedInputReceived(BBCombinedEvent)

combinedInputReceived

void combinedInputReceived(BBCombinedEvent evt)
Fires whenever input is received on the regular input reports (0x30...0x3f). Contains all information possibly received from input. This method fires in addition to the individual method of each input.

Parameters:
evt - a combined event, containing button press and mass events.
See Also:
buttonInputReceived(BBButtonEvent), massInputReceived(BBMassEvent)

disconnected

void disconnected()
Fires when the BalanceBoard disconnects. Note that this fires only if the BalanceBoard disconnects from the computer. If the computer orders the disconnect, this method does not fire. Note also that the BalanceBoard is actually disconnected at this point, so you can not perform any actions on it.