InputEventGesture¶
继承: InputEventWithModifiers < InputEventFromWindow < InputEvent < Resource < RefCounted < Object
派生: InputEventMagnifyGesture, InputEventPanGesture
触摸手势的抽象基类。
描述¶
当用户在触摸屏上执行支持的手势时,会发送InputEventGestures。无法使用鼠标模拟手势,因为它们通常需要多点触控。
属性¶
属性说明¶
Vector2 position = Vector2(0, 0) 🔗
相对于Viewport的本地手势位置。如果在Control._gui_input()中使用,则该位置相对于接收此手势的当前Control。