diff options
author | Brian Duddie <bduddie@google.com> | 2022-01-19 16:06:13 -0800 |
---|---|---|
committer | Brian Duddie <bduddie@google.com> | 2022-01-19 16:06:13 -0800 |
commit | 373a1b9fe96bd489c0a4d2f90a40176dbf3db318 (patch) | |
tree | 737e90c3e4f69d1f524a90845fe85538cdb31a86 /include | |
parent | c76c1d579965d967ff99264a16342ee33ae870c6 (diff) | |
download | libhardware-373a1b9fe96bd489c0a4d2f90a40176dbf3db318.tar.gz |
Add head tracker to sensors_event_t
Bug: 210156629
Test: compile (definitions only)
Change-Id: Ic76e8b957a4e1660dd975fd3195b7b2aa31035b4
Diffstat (limited to 'include')
-rw-r--r-- | include/hardware/sensors.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/hardware/sensors.h b/include/hardware/sensors.h index cef5dd61..56865162 100644 --- a/include/hardware/sensors.h +++ b/include/hardware/sensors.h @@ -292,6 +292,16 @@ typedef struct { }; } 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 @@ typedef struct sensors_event_t { * 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 { |