|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlejos.nxt.TouchSensor
public class TouchSensor
Abstraction for a NXT touch sensor. Also works with RCX touch sensors.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
TouchSensor(ADSensorPort port)
Create a touch sensor object attached to the specified port. |
|
| Method Summary | |
|---|---|
boolean |
isPressed()
Check if the sensor is pressed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TouchSensor(ADSensorPort port)
port - an Analog/Digital port, e.g. SensorPort.S1| Method Detail |
|---|
public boolean isPressed()
true if sensor is pressed, false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||