Modifier and Type | Method and Description |
---|---|
boolean |
isPressed()
• Returns the state of the sensor.
|
void |
waitForPressEvent()
• Waits until the state of the touch sensor changes from released to pressed.
|
boolean |
waitForPressEvent(int timeout)
• Waits until the state of the touch sensor changes from released to pressed or a timeout occurs.
|
void |
waitForReleaseEvent()
• Waits until the state of the touch sensor changes from pressed to released.
|
boolean |
waitForReleaseEvent(int timeout)
• Waits until the state of the touch sensor changes from pressed to released or a timeout occurs.
|
void |
waitUntilPressed()
• Waits until the touch sensor is in the state pressed.
|
boolean |
waitUntilPressed(int timeout)
• Waits until the touch sensor is in the state pressed or a timeout occurs.
|
void |
waitUntilReleased()
• Waits until the touch sensor is in the state released.
|
boolean |
waitUntilReleased(int timeout)
• Waits until the touch sensor is in the state released or a timeout occurs.
|
checkForEventOverflow, clearListener, getChangeRate, getFilterToleranceRate, getFilterToleranceValue, getIntegrationTime, getMeasuredValue, setFilterTolerances, setIntegrationTime, setListener, waitUntilBelowLimit, waitUntilBelowLimit, waitUntilBeyondLimit, waitUntilBeyondLimit
boolean isPressed()
void waitForPressEvent()
boolean waitForPressEvent(int timeout)
timeout
- the maximum time period to wait (in ms)void waitForReleaseEvent()
boolean waitForReleaseEvent(int timeout)
timeout
- the maximum time period to wait (in ms)void waitUntilPressed()
boolean waitUntilPressed(int timeout)
timeout
- the maximum time period to wait (in ms)void waitUntilReleased()
boolean waitUntilReleased(int timeout)
timeout
- the maximum time period to wait (in ms)