From f2ed9fca2aed3e7a5efca22f8ae4daaa405d1fb0 Mon Sep 17 00:00:00 2001 From: wangxiuxiu Date: Fri, 13 Dec 2024 10:33:37 +0800 Subject: [PATCH] mouse add cancel Signed-off-by: wangxiuxiu --- arkui/ace_engine/native/native_interface_xcomponent.h | 1 + arkui/ace_engine/native/ui_input_event.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arkui/ace_engine/native/native_interface_xcomponent.h b/arkui/ace_engine/native/native_interface_xcomponent.h index 301d2a6b9..9317850b9 100644 --- a/arkui/ace_engine/native/native_interface_xcomponent.h +++ b/arkui/ace_engine/native/native_interface_xcomponent.h @@ -151,6 +151,7 @@ typedef enum { OH_NATIVEXCOMPONENT_MOUSE_PRESS, OH_NATIVEXCOMPONENT_MOUSE_RELEASE, OH_NATIVEXCOMPONENT_MOUSE_MOVE, + OH_NATIVEXCOMPONENT_MOUSE_CANCEL, } OH_NativeXComponent_MouseEventAction; /** diff --git a/arkui/ace_engine/native/ui_input_event.h b/arkui/ace_engine/native/ui_input_event.h index c9373cf0e..615207c92 100644 --- a/arkui/ace_engine/native/ui_input_event.h +++ b/arkui/ace_engine/native/ui_input_event.h @@ -158,6 +158,8 @@ enum { UI_MOUSE_EVENT_ACTION_RELEASE = 2, /** Move. */ UI_MOUSE_EVENT_ACTION_MOVE = 3, + /** Cancel. */ + UI_MOUSE_EVENT_ACTION_CANCEL = 4, }; /** -- Gitee