1# @ohos.multimodalInput.gestureEvent (手势输入事件) 2 3设备上报的手势事件。 4 5> **说明:** 6> 7> 本模块首批接口从API version 10开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 8 9## 导入模块 10 11```js 12import { Rotate, Pinch, ThreeFingersSwipe, FourFingersSwipe, ActionType } from '@kit.InputKit'; 13``` 14 15## Pinch 16 17捏合事件。 18 19**系统能力**:SystemCapability.MultimodalInput.Input.Core 20 21| 名称 | 类型 | 可读 | 可写 | 说明 | 22| -------------- | ----------- | ---- | ---- | ---------------------------------------- | 23| type | [ActionType](#actiontype) | 是 | 否 | 捏合事件类型 | 24| scale | number | 是 | 否 | 捏合度,取值范围大于等于0 | 25 26## Rotate<sup>11+</sup> 27 28旋转事件。 29 30**系统能力**:SystemCapability.MultimodalInput.Input.Core 31 32| 名称 | 类型 | 可读 | 可写 | 说明 | 33| -------------- | ----------- | ---- | ---- | ---------------------------------------- | 34| type | [ActionType](#actiontype) | 是 | 否 | 旋转事件类型 | 35| angle | number | 是 | 否 | 旋转角度 | 36 37## ThreeFingersSwipe 38 39三指滑动事件。 40 41**系统能力**:SystemCapability.MultimodalInput.Input.Core 42 43| 名称 | 类型 | 可读 | 可写 | 说明 | 44| -------------- | ----------- | ---- | ---- | ---------------------------------------- | 45| type | [ActionType](#actiontype) | 是 | 否 | 三指滑动事件类型 | 46| x | number | 是 | 否 | 坐标x | 47| y | number | 是 | 否 | 坐标y | 48 49## FourFingersSwipe 50 51四指滑动事件。 52 53**系统能力**:SystemCapability.MultimodalInput.Input.Core 54 55| 名称 | 类型 | 可读 | 可写 | 说明 | 56| -------------- | ----------- | ---- | ---- | ---------------------------------------- | 57| type | [ActionType](#actiontype) | 是 | 否 | 四指滑动事件类型 | 58| x | number | 是 | 否 | 坐标x | 59| y | number | 是 | 否 | 坐标y | 60 61## ThreeFingersTap<sup>11+</sup> 62 63三指轻点事件。 64 65**系统能力**:SystemCapability.MultimodalInput.Input.Core 66 67| 名称 | 类型 | 可读 | 可写 | 说明 | 68| ------------------ | ------------------------- | ---- | ---- | ---------------- | 69| type | [ActionType](#actiontype) | 是 | 否 | 三指轻点事件类型 | 70 71## ActionType 72 73手势事件类型。 74 75**系统能力**:SystemCapability.MultimodalInput.Input.Core 76 77| 名称 | 值 | 说明 | 78| ----------- | --- | --------------- | 79| CANCEL | 0 | 取消 | 80| BEGIN | 1 | 手势开始 | 81| UPDATE | 2 | 手势更新 | 82| END | 3 | 手势结束 | 83