From b3aeea466ae6841fa5cd23aba4851877952372f6 Mon Sep 17 00:00:00 2001 From: wangweiyuan2 Date: Mon, 8 Sep 2025 15:04:37 +0800 Subject: [PATCH] sourcetype add capi Signed-off-by: wangweiyuan2 --- 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 1e74a9ff75b..83bfe0b4bdc 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