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

Inherits: InputEventGesture < InputEventWithModifiers < InputEventFromWindow < InputEvent < Resource < RefCounted < Object

代表平移触摸手势。

Description

存储与平移手势相关的信息。用户在触摸屏上滑动双指,就执行了平移手势。一般用于平移/滚动。

Tutorials

Properties

Vector2

delta

Vector2(0, 0)


Property Descriptions

Vector2 delta = Vector2(0, 0)

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