From 1f976a427225d444c15f816473cefcf749687e8c Mon Sep 17 00:00:00 2001 From: wangborui2 <979316006@qq.com> Date: Sat, 13 Jul 2024 09:28:10 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8Base=20Event=E5=A2=9E=E5=8A=A0deviceId?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangborui2 <979316006@qq.com> --- api/@internal/component/ets/common.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index cb4a7bd5cc..cfa0c7034d 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -7771,6 +7771,17 @@ declare interface BaseEvent { * @since 12 */ getModifierKeyState?(keys: Array): boolean; + + /** + * Indicates the ID of the input device that triggers the current event. + * + * @type { ?number } [deviceId] The ID of the input device that triggers the current event + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + deviceId?: number; } /** -- Gitee