ch.aplu.nxt
Interface TouchListener

All Known Implementing Classes:
TouchAdapter

public interface TouchListener

Interface with declarations of callback methods for the touch sensor.


Method Summary
 void pressed(SensorPort port)
          Called when the touch sensor is pressed.
 void released(SensorPort port)
          Called when the touch sensor is released.
 

Method Detail

pressed

void pressed(SensorPort port)
Called when the touch sensor is pressed.

Parameters:
port - the port where the sensor is plugged in

released

void released(SensorPort port)
Called when the touch sensor is released.

Parameters:
port - the port where the sensor is plugged in