Get Touch Info

نظام الإدخال
جانب العميل
للهاتف المحمول والكمبيوتر الشخصي

Get the specified index screen touch information (including position, displacement, and change time).

إقرار

func GetTouchInfo(index int, out var position Vector2, out var deltaPosition Vector2, out var deltaTime float)
go

معلمات

إدخال

اسم نوع تفاصيل
الفهرس Int Distribute touch point IDs, starting from 0

خارج

اسم نوع تفاصيل
الموقع Vector2 موضع اللمس
Delta Position Vector2 التغيير في الموضع مقارنة بالإطار الأخير
Delta Time Float الوقت المنقضي منذ الإطار الأخير