From c1ca542d4db99557e06188f327e1a101cb69ec80 Mon Sep 17 00:00:00 2001 From: zhouchaobo Date: Tue, 31 Dec 2024 09:36:58 +0800 Subject: [PATCH] OH_ArkUI_UIInputEvent_GetModifierKeyStates interface add Signed-off-by: zhouchaobo Change-Id: I14e1ad7f1d394c33b1e31fe5d566be49c5afdc95 --- arkui/ace_engine/native/ui_input_event.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arkui/ace_engine/native/ui_input_event.h b/arkui/ace_engine/native/ui_input_event.h index 503f6f8ca2b..ecec3291f2f 100644 --- a/arkui/ace_engine/native/ui_input_event.h +++ b/arkui/ace_engine/native/ui_input_event.h @@ -791,6 +791,19 @@ double OH_ArkUI_FocusAxisEvent_GetAxisValue(const ArkUI_UIInputEvent* event, int */ int32_t OH_ArkUI_FocusAxisEvent_SetStopPropagation(const ArkUI_UIInputEvent* event, bool stopPropagation); +/** + * @brief Obtains the state of the modifier keys in a UI input event. + * + * @param event Pointer to an ArkUI_UIInputEvent object. + * @param keys Pointer to a variable where the current combination of pressed modifier keys will be returned. + * The application can use bitwise operations to determine the state of each modifier key. + * @return Returns the result code. + * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. + * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. + * @since 16 + */ +int32_t OH_ArkUI_UIInputEvent_GetModifierKeyStates(const ArkUI_UIInputEvent* event, uint64_t* keys); + #ifdef __cplusplus }; #endif -- Gitee