public static class AccelerometerMma8452q.Tap
extends java.lang.Object
Constructor and Description |
---|
Tap(boolean[] active,
Sign[] polarities,
TapType type)
Creates a Tap object
|
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
active(CartesianAxis axis)
Check if the axis triggered the tap interrupt
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
Sign |
polarity(CartesianAxis axis)
Check the polarity (directional) information of the axis
|
java.lang.String |
toString() |
public final TapType type
public java.lang.Boolean active(CartesianAxis axis)
axis
- Axis to lookuppublic Sign polarity(CartesianAxis axis)
axis
- Axis to lookupSign.POSITIVE
if event was positive g, Sign.NEGATIVE
if negative gpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object