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.
Checking the stable version of the documentation...
InputEventGesture
繼承: InputEventWithModifiers < InputEventFromWindow < InputEvent < Resource < RefCounted < Object
被繼承: InputEventMagnifyGesture, InputEventPanGesture
觸摸手勢的抽象基底類別。
說明
使用者在觸控式螢幕上執行支援的手勢時會發送 InputEventGesture。無法用滑鼠類比手勢,因為手勢一般都要求多點觸控。
教學
屬性
device |
|
|
|
屬性說明
Vector2 position = Vector2(0, 0) 🔗
相對於Viewport的本地手勢位置。如果在Control._gui_input()中使用,位置是相對於目前接收該手勢的控制項Control而言的。