提交 92026b34 编写于 作者: S shaoziyun

格式修改

Signed-off-by: Nshaoziyun <shaoziyun@huawei.com>
上级 330ac410
# InputEvent # 输入事件
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
## 导入模块 ## 导入模块
```ts ```ts
import InputEvent from '@ohos.multimodalInput.inputEvent'; import InputEvent from '@ohos.multimodalInput.inputEvent';
``` ```
## 属性
**系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core **系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core
| 名称 | 参数类型 | 可读 | 可写 | 描述 | | 名称 | 参数类型 | 可读 | 可写 | 描述 |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| id | number | 是 | 否 | 由服务端生成全局唯一事件id | | id | number | 是 | 否 | 由服务端生成全局唯一事件id |
| deviceId | number | 是 | 否 | 上报输入事件的设备id | | deviceId | number | 是 | 否 | 上报输入事件的设备id |
| actionTime | number | 是 | 否 | 事件发生时间 | | actionTime | number | 是 | 否 | 输入事件的上报时间 |
| screenId | number | 是 | 否 | 目标屏幕id | | screenId | number | 是 | 否 | 目标屏幕id |
| windowId | number | 是 | 否 | 目标窗口id | | windowId | number | 是 | 否 | 目标窗口id |
\ No newline at end of file
# KeyCode # 键值
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
...@@ -9,8 +11,6 @@ ...@@ -9,8 +11,6 @@
import {KeyCode} from '@ohos.multimodalInput.keyCode' import {KeyCode} from '@ohos.multimodalInput.keyCode'
``` ```
## 属性
**系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core **系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core
| 名称 | 参数类型 | 可读 | 可写 | 描述 | | 名称 | 参数类型 | 可读 | 可写 | 描述 |
......
# Action # 按键输入事件
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
...@@ -6,30 +8,21 @@ ...@@ -6,30 +8,21 @@
## 导入模块 ## 导入模块
```ts ```ts
import {Action} from '@ohos.multimodalInput.keyEvent'; import {Action,Key,KeyEvent} from '@ohos.multimodalInput.keyEvent';
``` ```
## 属性 # Action
**系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core **系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core
| 名称 | 参数类型 | 可读 | 可写 | 描述 | | 名称 | 参数类型 | 可读 | 可写 | 描述 |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| CANCEL | number | 是 | 否 | 取消 | | CANCEL | number | 是 | 否 | 取消 |
| DOWN | number | 是 | 否 | 按钮按下 | | DOWN | number | 是 | 否 | 按下按钮 |
| UP | number | 是 | 否 | 按钮抬起 | | UP | number | 是 | 否 | 抬起按钮 |
# Key # Key
## 导入模块
```ts
import {Key} from '@ohos.multimodalInput.mouseEvent';
```
## 属性
**系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core **系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core
| 名称 | 参数类型 | 可读 | 可写 | 描述 | | 名称 | 参数类型 | 可读 | 可写 | 描述 |
...@@ -40,14 +33,6 @@ import {Key} from '@ohos.multimodalInput.mouseEvent'; ...@@ -40,14 +33,6 @@ import {Key} from '@ohos.multimodalInput.mouseEvent';
# KeyEvent # KeyEvent
## 导入模块
```ts
import {KeyEvent} from '@ohos.multimodalInput.mouseEvent';
```
## 属性
**系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core **系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core
| 名称 | 参数类型 | 可读 | 可写 | 描述 | | 名称 | 参数类型 | 可读 | 可写 | 描述 |
......
# Action # 鼠标输入事件
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
...@@ -6,10 +7,10 @@ ...@@ -6,10 +7,10 @@
## 导入模块 ## 导入模块
```ts ```ts
import {Action} from '@ohos.multimodalInput.mouseEvent'; import {Action,Button,Axis,AxisValue,MouseEvent} from '@ohos.multimodalInput.mouseEvent';
``` ```
## 属性 # Action
**系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core **系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core
...@@ -26,14 +27,6 @@ import {Action} from '@ohos.multimodalInput.mouseEvent'; ...@@ -26,14 +27,6 @@ import {Action} from '@ohos.multimodalInput.mouseEvent';
# Button # Button
## 导入模块
```ts
import {Button} from '@ohos.multimodalInput.mouseEvent';
```
## 属性
**系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core **系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core
| 名称 | 参数类型 | 可读 | 可写 | 描述 | | 名称 | 参数类型 | 可读 | 可写 | 描述 |
...@@ -47,17 +40,8 @@ import {Button} from '@ohos.multimodalInput.mouseEvent'; ...@@ -47,17 +40,8 @@ import {Button} from '@ohos.multimodalInput.mouseEvent';
| BACK | number | 是 | 否 | 鼠标后退键 | | BACK | number | 是 | 否 | 鼠标后退键 |
| TASK | number | 是 | 否 | 鼠标任务键 | | TASK | number | 是 | 否 | 鼠标任务键 |
# Axis # Axis
## 导入模块
```ts
import {Axis} from '@ohos.multimodalInput.mouseEvent';
```
## 属性
**系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core **系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core
| 名称 | 参数类型 | 可读 | 可写 | 描述 | | 名称 | 参数类型 | 可读 | 可写 | 描述 |
...@@ -69,14 +53,6 @@ import {Axis} from '@ohos.multimodalInput.mouseEvent'; ...@@ -69,14 +53,6 @@ import {Axis} from '@ohos.multimodalInput.mouseEvent';
# AxisValue # AxisValue
## 导入模块
```ts
import {AxisValue} from '@ohos.multimodalInput.mouseEvent';
```
## 属性
**系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core **系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core
| 名称 | 参数类型 | 可读 | 可写 | 描述 | | 名称 | 参数类型 | 可读 | 可写 | 描述 |
...@@ -87,14 +63,6 @@ import {AxisValue} from '@ohos.multimodalInput.mouseEvent'; ...@@ -87,14 +63,6 @@ import {AxisValue} from '@ohos.multimodalInput.mouseEvent';
# MouseEvent # MouseEvent
## 导入模块
```ts
import {MouseEvent} from '@ohos.multimodalInput.mouseEvent';
```
## 属性
**系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core **系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core
| 名称 | 参数类型 | 可读 | 可写 | 描述 | | 名称 | 参数类型 | 可读 | 可写 | 描述 |
......
# Action # 触摸输入事件
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
...@@ -6,10 +8,10 @@ ...@@ -6,10 +8,10 @@
## 导入模块 ## 导入模块
```ts ```ts
import {Action} from '@ohos.multimodalInput.ToucEvent'; import {Action,ToolType,SourceType,Touch,TouchEvent} from '@ohos.multimodalInput.ToucEvent';
``` ```
## 属性 # Action
**系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core **系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core
...@@ -20,17 +22,8 @@ import {Action} from '@ohos.multimodalInput.ToucEvent'; ...@@ -20,17 +22,8 @@ import {Action} from '@ohos.multimodalInput.ToucEvent';
| MOVE | number | 是 | 否 | 触摸移动 | | MOVE | number | 是 | 否 | 触摸移动 |
| UP | number | 是 | 否 | 触摸抬起 | | UP | number | 是 | 否 | 触摸抬起 |
# ToolType # ToolType
## 导入模块
```ts
import {ToolType} from '@ohos.multimodalInput.ToucEvent';
```
## 属性
**系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core **系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core
| 名称 | 参数类型 | 可读 | 可写 | 描述 | | 名称 | 参数类型 | 可读 | 可写 | 描述 |
...@@ -44,17 +37,8 @@ import {ToolType} from '@ohos.multimodalInput.ToucEvent'; ...@@ -44,17 +37,8 @@ import {ToolType} from '@ohos.multimodalInput.ToucEvent';
| MOUSE | number | 是 | 否 | 鼠标 | | MOUSE | number | 是 | 否 | 鼠标 |
| LENS | number | 是 | 否 | 透镜 | | LENS | number | 是 | 否 | 透镜 |
# SourceType # SourceType
## 导入模块
```ts
import {SourceType} from '@ohos.multimodalInput.ToucEvent';
```
## 属性
**系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core **系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core
| 名称 | 参数类型 | 可读 | 可写 | 描述 | | 名称 | 参数类型 | 可读 | 可写 | 描述 |
...@@ -63,17 +47,8 @@ import {SourceType} from '@ohos.multimodalInput.ToucEvent'; ...@@ -63,17 +47,8 @@ import {SourceType} from '@ohos.multimodalInput.ToucEvent';
| PEN | number | 是 | 否 | 手写笔 | | PEN | number | 是 | 否 | 手写笔 |
| TOUCH_PAD | number | 是 | 否 | 触摸板 | | TOUCH_PAD | number | 是 | 否 | 触摸板 |
# Touch # Touch
## 导入模块
```ts
import {Touch} from '@ohos.multimodalInput.ToucEvent';
```
## 属性
**系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core **系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core
| 名称 | 参数类型 | 可读 | 可写 | 描述 | | 名称 | 参数类型 | 可读 | 可写 | 描述 |
...@@ -97,17 +72,8 @@ import {Touch} from '@ohos.multimodalInput.ToucEvent'; ...@@ -97,17 +72,8 @@ import {Touch} from '@ohos.multimodalInput.ToucEvent';
| rawY | number | 是 | 否 | 输入设备上的y坐标 | | rawY | number | 是 | 否 | 输入设备上的y坐标 |
| toolType | number | 是 | 否 | 工具类型 | | toolType | number | 是 | 否 | 工具类型 |
# TouchEvent # TouchEvent
## 导入模块
```ts
import {TouchEvent} from '@ohos.multimodalInput.ToucEvent';
```
## 属性
**系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core **系统能力**:以下各项对应的系统能力均为SystemCapability.MultimodalInput.Input.Core
| 名称 | 参数类型 | 可读 | 可写 | 描述 | | 名称 | 参数类型 | 可读 | 可写 | 描述 |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册