• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# @ohos.multimodalInput.inputEvent (Input Event)
2
3The **inputEvent** module describes basic events reported by an input device.
4
5> **NOTE**<br>
6> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version.
7
8## Modules to Import
9
10```js
11import InputEvent from '@ohos.multimodalInput.inputEvent';
12```
13
14## InputEvent
15
16Defines an input event.
17
18**System capability**: SystemCapability.MultimodalInput.Input.Core
19
20**Parameters**
21
22| Name| Type| Readable| Writable| Description|
23| -------- | -------- | -------- | -------- | -------- |
24| id | number | Yes| No| Unique event ID generated by the server.|
25| deviceId | number | Yes| No| ID of the device that reports the input event.|
26| actionTime | number | Yes| No| Time when the event is reported.|
27| screenId | number | Yes| No| ID of the target screen.|
28| windowId | number | Yes| No| ID of the target window.|
29