diff --git a/en/application-dev/reference/apis/js-apis-inputdevice.md b/en/application-dev/reference/apis/js-apis-inputdevice.md index 803c0deabfa06bfcb86fff70c69d6935a2511c89..b5d06d979b5a7a6d29a3bff59cf5d91792bc1562 100644 --- a/en/application-dev/reference/apis/js-apis-inputdevice.md +++ b/en/application-dev/reference/apis/js-apis-inputdevice.md @@ -121,17 +121,17 @@ Defines the information about an input device. **System capability**: SystemCapability.MultimodalInput.Input.InputDevice | Name | Type | Description | -| ---------- | -------------------------------------- | ------------------------------------------------------------ | -| id | number | Unique identifier of an input device. If the same physical device is repeatedly inserted and removed, its ID changes.| -| name | string | Name of the input device. | -| sources | Array<[SourceType](#sourcetype)> | Source types of the input device. For example, if a keyboard is attached with a touchpad, the device has two input sources: keyboard and touchpad.| -| axisRanges | Array<[axisRanges](#axisrange)> | Axis information of the input device. | -| bus | number | Bus type of the input device. | -| product | number | Product information of the input device. | -| vendor | number | Vendor information of the input device. | -| version | number | Version information of the input device. | -| phys | string | Physical address of the input device. | -| uniq | string | Unique ID of the input device. | +| ---------- | -------------------------- | ---------------------------------------------------- | +| id | number | Unique identifier of an input device. If the same physical device is repeatedly inserted and removed, its ID changes. | +| name | string | Name of the input device. | +| sources | Array<[SourceType](#sourcetype)> | Source types of the input device. For example, if a keyboard is attached with a touchpad, the device has two input sources: keyboard and touchpad. | +| axisRanges | Array<[axisRanges](#axisrange)> | Axis information of the input device. | +| bus | number | Bus type of the input device. | +| product | number | Product information of the input device. | +| vendor | number | Vendor information of the input device. | +| version | number | Version information of the input device. | +| phys | string | Physical address of the input device. | +| uniq | string | Unique ID of the input device. | ## AxisType diff --git a/en/application-dev/reference/apis/js-apis-inputeventclient.md b/en/application-dev/reference/apis/js-apis-inputeventclient.md index ed3942bb5920474b06ae829521a77bf483d1cac0..4d6bf02375fb726e84e47f12883e6ec0d7ecab69 100644 --- a/en/application-dev/reference/apis/js-apis-inputeventclient.md +++ b/en/application-dev/reference/apis/js-apis-inputeventclient.md @@ -1,17 +1,17 @@ # Input Event Client -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** +> **NOTE** > -> - The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. > -> - The APIs of this module are system APIs and cannot be called by third-party applications. +> The APIs of this module are system APIs and cannot be called by third-party applications. ## Modules to Import -``` +```js import inputEventClient from '@ohos.multimodalInput.inputEventClient'; ``` @@ -32,14 +32,14 @@ Injects a key. **Example** -``` +```js let keyEvent = { isPressed: true, keyCode: 2, keyDownDuration: 0, isIntercepted: false } -res = inputEventClient.injectEvent({KeyEvent: keyEvent}); +let res = inputEventClient.injectEvent({KeyEvent: keyEvent}); ```