From cd738e1d4d85dc664676cc9fd35e80d7bf88c447 Mon Sep 17 00:00:00 2001 From: zhangbingce Date: Fri, 9 Sep 2022 15:00:30 +0800 Subject: [PATCH] =?UTF-8?q?[xcomponent]=E8=A1=A5=E5=85=85native=20sdk=20?= =?UTF-8?q?=E5=A4=B4=E6=96=87=E4=BB=B6=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangbingce --- zh-cn/native_sdk/ace/native_interface_xcomponent.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/zh-cn/native_sdk/ace/native_interface_xcomponent.h b/zh-cn/native_sdk/ace/native_interface_xcomponent.h index 2a66629c..d499f26a 100644 --- a/zh-cn/native_sdk/ace/native_interface_xcomponent.h +++ b/zh-cn/native_sdk/ace/native_interface_xcomponent.h @@ -56,6 +56,10 @@ enum { OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER = -2, }; +/** + * @brief 触摸事件类型。 + * @since 8 + */ enum OH_NativeXComponent_TouchEventType { /** 手指按下时触发触摸事件。 */ OH_NATIVEXCOMPONENT_DOWN = 0, @@ -73,6 +77,12 @@ enum OH_NativeXComponent_TouchEventType { const uint32_t OH_XCOMPONENT_ID_LEN_MAX = 128; const uint32_t OH_MAX_TOUCH_POINTS_NUMBER = 10; +/** + * @brief 触摸事件中触摸点的信息。 + * + * @since 8 + * @version 1.0 + */ struct OH_NativeXComponent_TouchPoint { /** 手指的唯一标识符。 */ int32_t id = 0; @@ -97,7 +107,7 @@ struct OH_NativeXComponent_TouchPoint { }; /** - * @brief 代表接触点信息。 + * @brief 触摸事件。 * * @since 8 * @version 1.0 -- Gitee