# @ohos.multimodalInput.gestureEvent (手势输入事件)

设备上报的手势事件。

>  **说明:**
>
> 本模块首批接口从API version 10开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。

## 导入模块

```js
import { Rotate, Pinch, ThreeFingersSwipe, FourFingersSwipe, ActionType } from '@kit.InputKit';
```

## Pinch

捏合事件。

**系统能力**:SystemCapability.MultimodalInput.Input.Core

| 名称             | 类型        | 可读   | 可写   | 说明                                       |
| -------------- | ----------- | ---- | ---- | ---------------------------------------- |
| type         | [ActionType](#actiontype)   | 是    | 否    | 捏合事件类型                                   |
| scale        | number      | 是    | 否    | 捏合度,取值范围大于等于0                             |

## Rotate<sup>11+</sup>

旋转事件。

**系统能力**:SystemCapability.MultimodalInput.Input.Core

| 名称             | 类型        | 可读   | 可写   | 说明                                       |
| -------------- | ----------- | ---- | ---- | ---------------------------------------- |
| type | [ActionType](#actiontype)   | 是    | 否    | 旋转事件类型                                   |
| angle | number      | 是    | 否    | 旋转角度                             |

## ThreeFingersSwipe

三指滑动事件。

**系统能力**:SystemCapability.MultimodalInput.Input.Core

| 名称             | 类型        | 可读   | 可写   | 说明                                       |
| -------------- | ----------- | ---- | ---- | ---------------------------------------- |
| type         | [ActionType](#actiontype)   | 是    | 否    | 三指滑动事件类型                                   |
| x        | number      | 是    | 否    | 坐标x                             |
| y        | number      | 是    | 否    | 坐标y                             |

## FourFingersSwipe

四指滑动事件。

**系统能力**:SystemCapability.MultimodalInput.Input.Core

| 名称             | 类型        | 可读   | 可写   | 说明                                       |
| -------------- | ----------- | ---- | ---- | ---------------------------------------- |
| type         | [ActionType](#actiontype)   | 是    | 否    | 四指滑动事件类型                                   |
| x        | number      | 是    | 否    | 坐标x                             |
| y        | number      | 是    | 否    | 坐标y                             |

## ThreeFingersTap<sup>11+</sup>

三指轻点事件。

**系统能力**:SystemCapability.MultimodalInput.Input.Core

| 名称               | 类型                      | 可读 | 可写 | 说明             |
| ------------------ | ------------------------- | ---- | ---- | ---------------- |
| type | [ActionType](#actiontype) | 是   | 否   | 三指轻点事件类型 |

## ActionType

手势事件类型。

**系统能力**:SystemCapability.MultimodalInput.Input.Core

| 名称        | 值  | 说明             |
| ----------- | --- | --------------- |
| CANCEL      | 0   | 取消             |
| BEGIN       | 1   | 手势开始         |
| UPDATE      | 2   | 手势更新         |
| END         | 3   | 手势结束         |