diff --git a/api/@ohos.multimodalInput.axisEvent.d.ts b/api/@ohos.multimodalInput.axisEvent.d.ts deleted file mode 100644 index ba6df294c0de21c411a20bbda55fb2d7c3158269..0000000000000000000000000000000000000000 --- a/api/@ohos.multimodalInput.axisEvent.d.ts +++ /dev/null @@ -1,152 +0,0 @@ -/* -* Copyright (c) 2022 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 -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -import { InputEvent } from "./@ohos.multimodalInput.inputEvent" -import { KeyCode } from "./@ohos.multimodalInput.keyCode" - -/** -* Action -* -* @since 9 -* @syscap SystemCapability.MultimodalInput.Input.Core -* @import import {Action} from '@ohos.multimodalInput.mouseEvent'; -*/ -export declare enum Action { - /** - * cancel - */ - CANCEL = 0, - - /** - * axis begin - */ - AXIS_BEGIN = 4, - - /** - * axis update - */ - AXIS_UPDATE = 5, - - /** - * axis end - */ - AXIS_END = 6, -} - -/** -* Axis -* -* @since 9 -* @syscap SystemCapability.MultimodalInput.Input.Core -* @import import {Axis} from '@ohos.multimodalInput.mouseEvent'; -*/ -export declare enum Axis { - /** - * scroll vertical - */ - SCROLL_VERTICAL = 0, - - /** - * scroll horizontal - */ - SCROLL_HORIZONTAL = 1, - - /** - * pinch - */ - PINCH = 2, -} - -/** -* AxisValue -* -* @since 9 -* @syscap SystemCapability.MultimodalInput.Input.Core -* @import import {AxisValue} from '@ohos.multimodalInput.mouseEvent'; -*/ -export declare interface AxisValue { - /** - * axis - */ - axis: Axis; - - /** - * value - */ - value: number -} - -/** -* MouseEvent -* -* @since 9 -* @syscap SystemCapability.MultimodalInput.Input.Core -* @import import {MouseEvent} from '@ohos.multimodalInput.mouseEvent'; -*/ -export declare interface MouseEvent extends InputEvent { - /** - * mouse action - */ - action: Action; - - /** - * axes data - */ - axes: AxisValue[]; - - /** - * List of keys that are currently in the pressed state. - */ - pressedKeys: KeyCode[]; - - /** - * whether ctrlKey is in pressed state. - */ - readonly ctrlKey: boolean; - - /** - * whether altKey is in pressed state. - */ - readonly altKey: boolean; - - /** - * whether shiftKey is in pressed state. - */ - readonly shiftKey: boolean; - - /** - * whether logoKey is in pressed state. - */ - readonly logoKey: boolean; - - /** - * whether fnKey is in pressed state. - */ - readonly fnKey: boolean; - - /** - * whether capsLock is in the active state. - */ - capsLock: boolean; - - /** - * whether numLock is in the active state. - */ - numLock: boolean; - - /** - * whether scrollLock is in the active state. - */ - scrollLock: boolean; -} \ No newline at end of file diff --git a/api/@ohos.multimodalInput.distributedInput.d.ts b/api/@ohos.multimodalInput.distributedInput.d.ts deleted file mode 100644 index f526134bc76624015e04414c429a811d50911c85..0000000000000000000000000000000000000000 --- a/api/@ohos.multimodalInput.distributedInput.d.ts +++ /dev/null @@ -1,104 +0,0 @@ -/* -* Copyright (c) 2022 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 -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS; -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import { AsyncCallback } from "./basic"; - -/** - * Distributed input management module for interface calls with distributed capabilities. - * - * @since 9 - * @syscap SystemCapability.MultimodalInput.Input.RemoteInputDevice - * @import import distributedInput from '@ohos.multimodalInput.distributedInput', - */ -declare namespace distributedInput { - enum InputSource { - /** - * mouse - */ - MOUSE = 0, - - /** - * keyboard - */ - KEYBOARD = 1, - - /** - * touch screen - */ - TOUCH_SCREEN = 2, - - /** - * touch pad - */ - TOUCH_PAD = 3, - } - - /** - * Example Query the input capability of a distributed device. - * - * @since 9 - * @syscap SystemCapability.MultimodalInput.Input.RemoteInputDevice - * @param deviceId Represents the ID of the device that queries the distributed input capability. - * @return - - */ - function getRemoteInputAbility(deviceId: number, callback: AsyncCallback>): void; - function getRemoteInputAbility(deviceId: number): Promise>; - - /** - * Prepare for distribution. - * - * @since 9 - * @syscap SystemCapability.MultimodalInput.Input.RemoteInputDevice - * @param deviceId Indicates the ID of the device to be distributed. - * @return - - */ - function prepareRemoteInput(deviceId: number, callback: AsyncCallback): void; - function prepareRemoteInput(deviceId: number): Promise; - - /** - * Cancel ready distributed. - * - * @since 9 - * @syscap SystemCapability.MultimodalInput.Input.RemoteInputDevice - * @param deviceId Indicates the ID of the device to be distributed. - * @return - - */ - function unprepareRemoteInput(deviceId: number, callback: AsyncCallback): void; - function unprepareRemoteInput(deviceId: number): Promise; - - /** - * Start distributed. - * - * @since 9 - * @syscap SystemCapability.MultimodalInput.Input.RemoteInputDevice - * @param deviceId Represents the ID of the device that started the distribution. - * @return - - */ - function startRemoteInput(deviceId: number, inputSources: Array, callback: AsyncCallback): void; - function startRemoteInput(deviceId: number, inputSources: Array): Promise; - - /** - * Stop distribution. - * - * @since 9 - * @syscap SystemCapability.MultimodalInput.Input.RemoteInputDevice - * @param deviceId Indicates the ID of the device that stopped distribution. - * @return - - */ - function stopRemoteInput(deviceId: number, inputSources: Array, callback: AsyncCallback): void; - function stopRemoteInput(deviceId: number, inputSources: Array): Promise; -} - -export default distributedInput; \ No newline at end of file diff --git a/api/@ohos.multimodalInput.inputDevice.d.ts b/api/@ohos.multimodalInput.inputDevice.d.ts old mode 100644 new mode 100755 index b16a830ab450175affeab2eb2b3652c1ebca9fb8..8765906a778b46edfa674400ecf2fef0d171de95 --- a/api/@ohos.multimodalInput.inputDevice.d.ts +++ b/api/@ohos.multimodalInput.inputDevice.d.ts @@ -248,25 +248,6 @@ declare namespace inputDevice { function supportKeys(deviceId: number, keys: Array, callback: Callback>): void; function supportKeys(deviceId: number, keys: Array): Promise>; - /** - * Set the speed of cursor movement. - * - * @since 9 - * @syscap SystemCapability.MultimodalInput.Input.InputDevice - * @param speed Speed of cursor movement. - */ - function setPointerSpeed(speed: number, callback: AsyncCallback): void; - function setPointerSpeed(speed: number): Promise; - - /** - * Gets the cursor movement speed. - * - * @since 9 - * @syscap SystemCapability.MultimodalInput.Input.InputDevice - */ - function getPointerSpeed(callback: AsyncCallback): void; - function getPointerSpeed(): Promise; - /** * Query the keyboard type of the input device. *