public static class AccelerometerMma8452q.Tap extends Object
Constructor and Description |
---|
Tap(boolean[] active,
Sign[] polarities,
TapType type)
Creates a Tap object
|
Modifier and Type | Method and Description |
---|---|
Boolean |
active(CartesianAxis axis)
Check if the axis triggered the tap interrupt
|
boolean |
equals(Object o) |
int |
hashCode() |
Sign |
polarity(CartesianAxis axis)
Check the polarity (directional) information of the axis
|
String |
toString() |
public final TapType type
public 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 g