diff options
Diffstat (limited to 'tilt/TiltSensor.cpp')
-rw-r--r-- | tilt/TiltSensor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tilt/TiltSensor.cpp b/tilt/TiltSensor.cpp index f566c22..895d5c4 100644 --- a/tilt/TiltSensor.cpp +++ b/tilt/TiltSensor.cpp @@ -36,7 +36,7 @@ TiltSensor::TiltSensor() { mPendingEvent.version = sizeof(sensors_event_t); mPendingEvent.sensor = ID_T; - mPendingEvent.type = SENSOR_TYPE_WRIST_TILT; + mPendingEvent.type = SENSOR_TYPE_WRIST_TILT_GESTURE; memset(mPendingEvent.data, 0, sizeof(mPendingEvent.data)); } @@ -203,7 +203,7 @@ int TiltSensor::readEvents(sensors_event_t* data, int count) while (count && mInputReader.readEvent(&event)) { int type = event->type; - if (type == EV_ABS) { + if (type == EV_MSC) { mPendingEvent.data[0] = 1.0f; /*mPendingEvent.data[event->code] = event->value;*/ } else if (type == EV_SYN) { |