Get touch position XY for a touch point index (relative to screen size)
raylib.InitWindow 800, 600, "Touch Position Demo" while not raylib.WindowShouldClose raylib.BeginDrawing raylib.ClearBackground color.white if raylib.GetTouchPointCount > 0 then pos = raylib.GetTouchPosition(0) raylib.DrawCircle pos[0], pos[1], 20, color.red end if raylib.EndDrawing end while raylib.CloseWindow
There was an error while loading. Please reload this page.