mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 22:24:20 +00:00
5505ea0c80
Signed-off-by: hungry_feiwei <huxiao31@huawei.com>
41 lines
1.2 KiB
TypeScript
Executable File
41 lines
1.2 KiB
TypeScript
Executable File
|
||
/*
|
||
* Copyright (C) 2021 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.
|
||
*/
|
||
|
||
/**
|
||
* InputEvent
|
||
*
|
||
* @since 9
|
||
* @syscap SystemCapability.MultimodalInput.Input.Core
|
||
* @import import InputEvent from '@ohos.multimodalInput.inputEvent';
|
||
* @permission N/A
|
||
*/
|
||
|
||
export declare interface InputEvent {
|
||
// 事件id,服务端生成,全局唯一
|
||
readonly id: number;
|
||
|
||
// 上报输入事件的设备id, 整型数字,>=0 有效
|
||
deviceId: number;
|
||
|
||
// 事件发生事件
|
||
actionTime: number;
|
||
|
||
// 目标屏幕id, 整型数字,>=0 有效
|
||
screenId: number;
|
||
|
||
// 目标窗口id, 整型数字, >=0 有效
|
||
windowId: number;
|
||
} |