InputEventPanGesture
继承: InputEventGesture < InputEventWithModifiers < InputEventFromWindow < InputEvent < Resource < RefCounted < Object
代表平移触摸手势。
描述
存储与平移手势相关的信息。用户在触摸屏上滑动双指,就执行了平移手势。一般用于平移/滚动。
注意:在 Android 上,这需要启用 ProjectSettings.input_devices/pointing/android/enable_pan_and_scale_gestures 项目设置。
教程
属性
|
属性说明
Vector2 delta = Vector2(0, 0)
上一次平移事件以来的平移量。
© 版权所有 2014-present Juan Linietsky, Ariel Manzur and the Godot community (CC BY 3.0). Revision b1c660f7
.
Built with Sphinx using a theme provided by Read the Docs.