diff --git a/api/@ohos.multimodalInput.mouseEvent.d.ts b/api/@ohos.multimodalInput.mouseEvent.d.ts index 29c7d1936b505ea2a22aa3ee714a09856013d292..827bbc5f60055d37d0193397612d51223833a53a 100644 --- a/api/@ohos.multimodalInput.mouseEvent.d.ts +++ b/api/@ohos.multimodalInput.mouseEvent.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -444,4 +444,22 @@ export declare interface MouseEvent extends InputEvent { * @since 11 */ toolType: ToolType; + + /** + * globalX - Global X coordinate. + * @type { ?number } + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 20 + * @arkts 1.1&1.2 + */ + globalX?: number; + + /** + * globalY - Global Y coordinate. + * @type { ?number } + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 20 + * @arkts 1.1&1.2 + */ + globalY?: number; } \ No newline at end of file diff --git a/api/@ohos.multimodalInput.touchEvent.d.ts b/api/@ohos.multimodalInput.touchEvent.d.ts index 502dc81171dc061f56718870bf0d59f4f3a39efa..b64684e5199f9440cb2ff9e24c38d36cc6c9b702 100644 --- a/api/@ohos.multimodalInput.touchEvent.d.ts +++ b/api/@ohos.multimodalInput.touchEvent.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -364,6 +364,24 @@ export declare interface Touch { * @since 19 */ fixedDisplayY?: number; + + /** + * globalX - Global X coordinate. + * @type { ?number } + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 20 + * @arkts 1.1&1.2 + */ + globalX?: number; + + /** + * globalY - Global Y coordinate. + * @type { ?number } + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 20 + * @arkts 1.1&1.2 + */ + globalY?: number; } /**