From 8aba993b67d325662ce99d6954b1b8f07f8b3ebc Mon Sep 17 00:00:00 2001 From: zhou-chaobo Date: Wed, 6 Aug 2025 15:29:45 +0800 Subject: [PATCH] CAPI:add key source type Signed-off-by: zhou-chaobo --- arkui/ace_engine/native/ui_input_event.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arkui/ace_engine/native/ui_input_event.h b/arkui/ace_engine/native/ui_input_event.h index a13728fe50d..57bf0424a2e 100644 --- a/arkui/ace_engine/native/ui_input_event.h +++ b/arkui/ace_engine/native/ui_input_event.h @@ -122,6 +122,18 @@ enum { UI_INPUT_EVENT_SOURCE_TYPE_MOUSE = 1, /** Touchscreen. */ UI_INPUT_EVENT_SOURCE_TYPE_TOUCH_SCREEN = 2, + /** + * @brief The key type. + * + * @since 21 + */ + UI_INPUT_EVENT_SOURCE_TYPE_KEY = 4, + /** + * @brief The joystick type. + * + * @since 21 + */ + UI_INPUT_EVENT_SOURCE_TYPE_JOYSTICK = 5, }; /** -- Gitee