From 88160ab8962283d40fb35bc6e522b5155a2b2d19 Mon Sep 17 00:00:00 2001 From: cff-gite Date: Wed, 28 Aug 2024 17:21:49 +0800 Subject: [PATCH 1/2] Add capi sensorType Signed-off-by: cff-gite Change-Id: I98f02ad3586488f6322b1d62ce7af2ba3a2cda01 --- interfaces/kits/c/oh_sensor_type.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/interfaces/kits/c/oh_sensor_type.h b/interfaces/kits/c/oh_sensor_type.h index e0ab040e..97658f44 100644 --- a/interfaces/kits/c/oh_sensor_type.h +++ b/interfaces/kits/c/oh_sensor_type.h @@ -91,11 +91,21 @@ typedef enum Sensor_Type { * @since 11 */ SENSOR_TYPE_GRAVITY = 257, + /** + * Linear acceleration sensor. + * @since 11 + */ + SENSOR_TYPE_LINEAR_ACCELERATION = 258, /** * Rotation vector sensor. * @since 11 */ SENSOR_TYPE_ROTATION_VECTOR = 259, + /** + * Game rotation vector sensor. + * @since 11 + */ + SENSOR_TYPE_ID_GAME_ROTATION_VECTOR = 262, /** * Pedometer detection sensor. * @since 11 -- Gitee From cec4e89732c1c6a5e26f9f2a7d5c1f77a6402bd5 Mon Sep 17 00:00:00 2001 From: cff-gite Date: Thu, 29 Aug 2024 10:37:36 +0800 Subject: [PATCH 2/2] Add capi sensorType Signed-off-by: cff-gite Change-Id: I5375d5477bdf2a9db20a874f2d12c5b52640c339 --- interfaces/kits/c/oh_sensor_type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/kits/c/oh_sensor_type.h b/interfaces/kits/c/oh_sensor_type.h index 97658f44..8d7775d9 100644 --- a/interfaces/kits/c/oh_sensor_type.h +++ b/interfaces/kits/c/oh_sensor_type.h @@ -105,7 +105,7 @@ typedef enum Sensor_Type { * Game rotation vector sensor. * @since 11 */ - SENSOR_TYPE_ID_GAME_ROTATION_VECTOR = 262, + SENSOR_TYPE_GAME_ROTATION_VECTOR = 262, /** * Pedometer detection sensor. * @since 11 -- Gitee