actionPerformed
public void actionPerformed(SensorPort port,
int command)
Called when a button action is detected.
The command IDs are:
0: All buttons released
1: TopLeft
2: BottomLeft
3: TopRight
4: BottomRight
5: TopLeft&TopRight
6: TopLeft&BottomRight
7: BottomLeft&TopRight
8: BottomLeft&BottomRight
9: Centre
10: BottomLeft&TopLeft
11: TopRight&BottomRight
Centre is a toggle button with a led indicator. If pressed,
it remains in the on or off state until pressed again or until another
button is pressed.
- Specified by:
actionPerformed
in interface RemoteListener
- Parameters:
port
- the port where the sensor is plugged incommand
- the command ID corresponding the buttons