Add head tracker to sensors_event_t
Bug: 210156629
Test: compile (definitions only)
Change-Id: Ic76e8b957a4e1660dd975fd3195b7b2aa31035b4
diff --git a/include/hardware/sensors.h b/include/hardware/sensors.h
index cef5dd6..5686516 100644
--- a/include/hardware/sensors.h
+++ b/include/hardware/sensors.h
@@ -292,6 +292,16 @@
};
} additional_info_event_t;
+typedef struct {
+ float rx;
+ float ry;
+ float rz;
+ float vx;
+ float vy;
+ float vz;
+ int32_t discontinuity_count;
+} head_tracker_event_t;
+
/**
* Union of the various types of sensor data
* that can be returned.
@@ -369,6 +379,9 @@
* SENSOR_TYPE_ADDITIONAL_INFO for details.
*/
additional_info_event_t additional_info;
+
+ /* vector describing head orientation (added for legacy code support only) */
+ head_tracker_event_t head_tracker;
};
union {