diff --git a/zh-cn/native_sdk/ace/native_interface_xcomponent.h b/zh-cn/native_sdk/ace/native_interface_xcomponent.h index 2a66629cce287061962d39bcb43e5569e33bd054..d499f26a9cdafd55b76d98152fa4fa98c904fca6 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