• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * @file
18 * @kit InputKit
19 */
20
21/**
22 * InputEvent
23 *
24 * @interface InputEvent
25 * @syscap SystemCapability.MultimodalInput.Input.Core
26 * @since 9
27 */
28/**
29 * InputEvent
30 *
31 * @typedef InputEvent
32 * @syscap SystemCapability.MultimodalInput.Input.Core
33 * @atomicservice
34 * @since 12
35 */
36export declare interface InputEvent {
37  /**
38   * Unique event ID generated by the server
39   * @type { number }
40   * @syscap SystemCapability.MultimodalInput.Input.Core
41   * @since 9
42   */
43  /**
44   * Unique event ID generated by the server
45   * @type { number }
46   * @syscap SystemCapability.MultimodalInput.Input.Core
47   * @atomicservice
48   * @since 12
49   */
50  id: number;
51
52  /**
53   * ID of the device that reports the input event
54   * @type { number }
55   * @syscap SystemCapability.MultimodalInput.Input.Core
56   * @since 9
57   */
58  /**
59   * ID of the device that reports the input event
60   * @type { number }
61   * @syscap SystemCapability.MultimodalInput.Input.Core
62   * @atomicservice
63   * @since 12
64   */
65  deviceId: number;
66
67  /**
68   * Occurrence time of the input event
69   * @type { number }
70   * @syscap SystemCapability.MultimodalInput.Input.Core
71   * @since 9
72   */
73  /**
74   * Occurrence time of the input event
75   * @type { number }
76   * @syscap SystemCapability.MultimodalInput.Input.Core
77   * @atomicservice
78   * @since 12
79   */
80  actionTime: number;
81
82  /**
83   * ID of the target screen
84   * @type { number }
85   * @syscap SystemCapability.MultimodalInput.Input.Core
86   * @since 9
87   */
88  /**
89   * ID of the target screen
90   * @type { number }
91   * @syscap SystemCapability.MultimodalInput.Input.Core
92   * @atomicservice
93   * @since 12
94   */
95  screenId: number;
96
97  /**
98   * ID of the target window
99   * @type { number }
100   * @syscap SystemCapability.MultimodalInput.Input.Core
101   * @since 9
102   */
103  /**
104   * ID of the target window
105   * @type { number }
106   * @syscap SystemCapability.MultimodalInput.Input.Core
107   * @atomicservice
108   * @since 12
109   */
110  windowId: number;
111}