Get Touch Info

輸入系統
客戶端
可在 Mobile 端和 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
Delta Position Vector2 The shift in position compared to the last frame
Delta Time Float Time elapsed since last frame