• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# @ohos.multimodalInput.inputEvent (Input Event)
2
3The **inputEvent** module provides the basic events reported by the device.
4
5>  **NOTE**
6>
7> 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.
8
9## Modules to Import
10
11```js
12import InputEvent from '@ohos.multimodalInput.inputEvent';
13```
14
15## InputEvent
16
17Represents an input event.
18
19**System capability**: SystemCapability.MultimodalInput.Input.Core
20
21| Name        | Type  | Readable  | Writable  | Description            |
22| ---------- | ------ | ---- | ---- | -------------- |
23| id         | number | Yes   | No   | Event ID.|
24| deviceId   | number | Yes   | No   | ID of the device that reports the input event.   |
25| actionTime | number | Yes   | No   | Time when the input event is reported.     |
26| screenId   | number | Yes   | No   | ID of the target screen.        |
27| windowId   | number | Yes   | No   | ID of the target window.        |
28