public abstract class TouchSensor extends java.lang.Object implements HardwareDevice
| Constructor and Description |
|---|
TouchSensor() |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
getValue()
Represents how much force is applied to the touch sensor; for some touch sensors
this value will only ever be 0 or 1.
|
abstract boolean |
isPressed()
Return true if the touch sensor is being pressed
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, getConnectionInfo, getDeviceName, getVersionpublic abstract double getValue()
public abstract boolean isPressed()
public java.lang.String toString()
toString in class java.lang.Object