From 5ae232822213164ca588a56cdd28eab74173f996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E8=A1=8D=E8=BE=89?= Date: Sat, 15 Feb 2025 09:38:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E6=89=8B=E6=A8=A1=E5=BC=8F=E5=A4=9A?= =?UTF-8?q?=E6=A8=A1ts=E6=8E=A5=E5=8F=A3=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 何衍辉 --- api/@ohos.multimodalInput.touchEvent.d.ts | 50 +++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/api/@ohos.multimodalInput.touchEvent.d.ts b/api/@ohos.multimodalInput.touchEvent.d.ts index 7fcaa2e549..093501a14e 100644 --- a/api/@ohos.multimodalInput.touchEvent.d.ts +++ b/api/@ohos.multimodalInput.touchEvent.d.ts @@ -167,6 +167,31 @@ export declare enum SourceType { TOUCH_PAD = 2 } +/** + * fixed mode of screenX and screenY + * + * @enum { number } + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 15 + */ +export declare enum FixedMode { + /** + * normal mode + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 15 + */ + NORMAL = 1, + + /** + * one hand mode + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 15 + */ + ONE_HAND = 2 +} + /** * Touch * @@ -318,6 +343,22 @@ export declare interface Touch { * @since 9 */ toolType: ToolType; + + /** + * Corrected value of the screen x coordinate + * @type { number } + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 15 + */ + fixedDisplayX?: number; + + /** + * Corrected value of the screen y coordinate + * @type { number } + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 15 + */ + fixedDisplayY?: number; } /** @@ -360,4 +401,13 @@ export declare interface TouchEvent extends InputEvent { * @since 9 */ sourceType: SourceType; + + /** + * fixed mode of Touch + * + * @type { FixedMode } + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 15 + */ + fixedMode?: FixedMode; } \ No newline at end of file -- Gitee