Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

InputEventPanGesture

繼承: InputEventGesture < InputEventWithModifiers < InputEventFromWindow < InputEvent < Resource < RefCounted < Object

代表平移觸摸手勢。

說明

Stores information about pan gestures. A pan gesture is performed when the user swipes the touch screen with two fingers. It's typically used for panning/scrolling.

Note: On Android, this requires the ProjectSettings.input_devices/pointing/android/enable_pan_and_scale_gestures project setting to be enabled.

教學

屬性

Vector2

delta

Vector2(0, 0)


屬性說明

Vector2 delta = Vector2(0, 0) 🔗

上一次平移事件以來的平移量。