QTapReading Class Reference
The QTapReading class represents one reading from the tap sensor. More...
#include <QTapReading>
Inherits QSensorReading.
Public Types
enum | TapDirection { Undefined, X, Y, Z, ..., Z_Neg } |
Properties
- doubleTap : const bool
- tapDirection : const TapDirection
- 1 property inherited from QSensorReading
Public Functions
bool | isDoubleTap () const |
void | setDoubleTap ( bool doubleTap ) |
void | setTapDirection ( TapDirection tapDirection ) |
TapDirection | tapDirection () const |
- 4 public functions inherited from QSensorReading
Detailed Description
The QTapReading class represents one reading from the tap sensor.
QTapReading Units
The tap sensor registers tap events in one of the six directions. There are 3 axes that originate from the phone. They are arranged as follows.
By default it returns only double tap events. The QTapSensor::returnDoubleTapEvents property must be set to false to return individual tap events.