1# @ohos.multimodalInput.gestureEvent (Gesture Input Event) 2 3The **gestureEvent** module provides APIs for gesture events reported by devices. 4 5> **NOTE** 6> 7> The initial APIs of this module are supported since API version 10. Newly added APIs will be marked with a superscript to indicate their earliest API version. 8 9## Modules to Import 10 11```js 12import { Rotate, Pinch, ThreeFingersSwipe, FourFingersSwipe, ActionType } from '@kit.InputKit'; 13``` 14 15## Pinch 16 17Defines a pinch event. 18 19**System capability**: SystemCapability.MultimodalInput.Input.Core 20 21| Name | Type | Readable | Writable | Description | 22| -------------- | ----------- | ---- | ---- | ---------------------------------------- | 23| type | [ActionType](#actiontype) | Yes | No | Pinch event type. | 24| scale | number | Yes | No | Pinch scale factor. The value is greater than or equal to 0. | 25 26## Rotate<sup>11+</sup> 27 28Defines a rotate event. 29 30**System capability**: SystemCapability.MultimodalInput.Input.Core 31 32| Name | Type | Readable | Writable | Description | 33| -------------- | ----------- | ---- | ---- | ---------------------------------------- | 34| type | [ActionType](#actiontype) | Yes | No | Rotate event type. | 35| angle | number | Yes | No | Angle of rotation. | 36 37## ThreeFingersSwipe 38 39Defines a three-finger swipe event. 40 41**System capability**: SystemCapability.MultimodalInput.Input.Core 42 43| Name | Type | Readable | Writable | Description | 44| -------------- | ----------- | ---- | ---- | ---------------------------------------- | 45| type | [ActionType](#actiontype) | Yes | No | Three-finger swipe event type. | 46| x | number | Yes | No | X coordinate. | 47| y | number | Yes | No | Y coordinate. | 48 49## FourFingersSwipe 50 51Defines a four-finger swipe event. 52 53**System capability**: SystemCapability.MultimodalInput.Input.Core 54 55| Name | Type | Readable | Writable | Description | 56| -------------- | ----------- | ---- | ---- | ---------------------------------------- | 57| type | [ActionType](#actiontype) | Yes | No | Four-finger swipe event type. | 58| x | number | Yes | No | X coordinate. | 59| y | number | Yes | No | Y coordinate. | 60 61## ThreeFingersTap<sup>11+</sup> 62 63Defines a three-finger tap event. 64 65**System capability**: SystemCapability.MultimodalInput.Input.Core 66 67| Name | Type | Readable| Writable| Description | 68| ------------------ | ------------------------- | ---- | ---- | ---------------- | 69| type | [ActionType](#actiontype) | Yes | No | Three-finger tap event type.| 70 71## ActionType 72 73Enumerates gesture event types. 74 75**System capability**: SystemCapability.MultimodalInput.Input.Core 76 77| Name | Value | Description | 78| ----------- | --- | --------------- | 79| CANCEL | 0 | Canceled. | 80| BEGIN | 1 | Started. | 81| UPDATE | 2 | Updated. | 82| END | 3 | Ended. | 83