@ohos.multimodalInput.inputEvent (Input Event)

The inputEvent module describes basic events reported by an input device.

NOTE
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

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

InputEvent

Defines an input event.

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.