1# @ohos.multimodalInput.gestureEvent (手势输入事件) 2 3设备上报的手势事件。 4 5> **说明:** 6> 7> 本模块首批接口从API version 10开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 8 9## 导入模块 10 11```js 12import { Pinch, ThreeFingersSwipe, FourFingersSwipe, ActionType } from '@ohos.multimodalInput.gestureEvent'; 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## ThreeFingersSwipe 27 28三指滑动事件。 29 30**系统能力**:SystemCapability.MultimodalInput.Input.Core 31 32| 名称 | 类型 | 可读 | 可写 | 说明 | 33| -------------- | ----------- | ---- | ---- | ---------------------------------------- | 34| type | [ActionType](#actiontype) | 是 | 否 | 三指滑动事件类型 | 35| x | number | 是 | 否 | 坐标x | 36| y | number | 是 | 否 | 坐标y | 37 38## FourFingersSwipe 39 40四指滑动事件。 41 42**系统能力**:SystemCapability.MultimodalInput.Input.Core 43 44| 名称 | 类型 | 可读 | 可写 | 说明 | 45| -------------- | ----------- | ---- | ---- | ---------------------------------------- | 46| type | [ActionType](#actiontype) | 是 | 否 | 四指滑动事件类型 | 47| x | number | 是 | 否 | 坐标x | 48| y | number | 是 | 否 | 坐标y | 49 50 51## ActionType 52 53手势事件类型。 54 55**系统能力**:SystemCapability.MultimodalInput.Input.Core 56 57| 名称 | 值 | 说明 | 58| ----------- | --- | --------------- | 59| CANCEL | 0 | 取消 | 60| BEGIN | 1 | 手势开始 | 61| UPDATE | 2 | 手势更新 | 62| END | 3 | 手势结束 | 63