รับข้อมูลการสัมผัส

ระบบอินพุต
ฝั่ง Client
ทั้งมือถือและ PC

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 Touch position
ตำแหน่งเดลต้า Vector2 The shift in position compared to the last frame
เวลาเดลต้า Float Time elapsed since last frame