From 2a437ef40e72e66cdf5ba982609145289c1f1f6f Mon Sep 17 00:00:00 2001 From: jjxxx123 Date: Sat, 7 Jun 2025 07:33:51 +0000 Subject: [PATCH 1/2] update arkui/window_manager/oh_window.h. Signed-off-by: jjxxx123 --- arkui/window_manager/oh_window.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arkui/window_manager/oh_window.h b/arkui/window_manager/oh_window.h index 478ab099a..a5f0a3c34 100644 --- a/arkui/window_manager/oh_window.h +++ b/arkui/window_manager/oh_window.h @@ -278,14 +278,16 @@ void OH_WindowManager_ReleaseAllWindowLayoutInfoList(WindowManager_Rect* windowL * * @param windowId windowId when window is created. * @param touchEvent multimodal touchEvent. + * @param windowX The position of the event relative to the abscissa of the window. + * @param windowY The position of the event relative to the ordinate of the window. * @return Returns the result code. * {@link OK} the function call is successful. - * {@link WINDOW_MANAGER_ERRORCODE_INVALID_PARAM} parameter error. * {@link WINDOW_MANAGER_ERRORCODE_STATE_ABNORMAL} this window state is abnormal. * {@link WINDOW_MANAGER_ERRORCODE_SYSTEM_ABNORMAL} the window manager service works abnormally. * @since 20 */ -int32_t OH_WindowManager_InjectTouchEvent(int32_t windowId, Input_TouchEvent* touchEvent); +int32_t OH_WindowManager_InjectTouchEvent(int32_t windowId, Input_TouchEvent* touchEvent, + int32_t windowX, int32_t windowY);); #ifdef __cplusplus } -- Gitee From 91edc4d1903655a8b85e25251ae64f0cdc7cdc8b Mon Sep 17 00:00:00 2001 From: jjxxx123 Date: Mon, 9 Jun 2025 06:01:41 +0000 Subject: [PATCH 2/2] update arkui/window_manager/oh_window.h. Signed-off-by: jjxxx123 --- arkui/window_manager/oh_window.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arkui/window_manager/oh_window.h b/arkui/window_manager/oh_window.h index a5f0a3c34..347d10002 100644 --- a/arkui/window_manager/oh_window.h +++ b/arkui/window_manager/oh_window.h @@ -286,8 +286,8 @@ void OH_WindowManager_ReleaseAllWindowLayoutInfoList(WindowManager_Rect* windowL * {@link WINDOW_MANAGER_ERRORCODE_SYSTEM_ABNORMAL} the window manager service works abnormally. * @since 20 */ -int32_t OH_WindowManager_InjectTouchEvent(int32_t windowId, Input_TouchEvent* touchEvent, - int32_t windowX, int32_t windowY);); +int32_t OH_WindowManager_InjectTouchEvent( + int32_t windowId, Input_TouchEvent* touchEvent, int32_t windowX, int32_t windowY); #ifdef __cplusplus } -- Gitee