js-apis-inputevent.md 914 字节
Newer Older
S
shawn_he 已提交
1
# @ohos.multimodalInput.inputEvent
S
shawn_he 已提交
2

S
shawn_he 已提交
3
The **inputEvent** module describes basic events reported by an input device.
S
shawn_he 已提交
4

S
shawn_he 已提交
5 6 7 8 9 10 11 12 13
> **NOTE**<br>
> 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.

## Modules to Import

```js
import InputEvent from '@ohos.multimodalInput.inputEvent';
```

S
shawn_he 已提交
14 15
## InputEvent 

S
shawn_he 已提交
16 17 18 19 20 21 22 23 24 25 26
**System capability**: SystemCapability.MultimodalInput.Input.Core

**Parameters**

| Name| Type| Readable| Writable| Description|
| -------- | -------- | -------- | -------- | -------- |
| id | number | Yes| No| Unique event ID generated by the server.|
| deviceId | number | Yes| No| ID of the device that reports the input event.|
| actionTime | number | Yes| No| Time when the event is reported.|
| screenId | number | Yes| No| ID of the target screen.|
| windowId | number | Yes| No| ID of the target window.|