-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.GetTouchPointId
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Get touch point identifier for given index
| Parameter | Default Value | Note |
|---|---|---|
| index | 0 |
| Condition | Return Value |
|---|---|
| (always) | number |
raylib.InitWindow 800, 600, "Touch ID Demo"
while not raylib.WindowShouldClose
raylib.BeginDrawing
raylib.ClearBackground color.white
n = raylib.GetTouchPointCount
for i in range(0, n - 1)
id = raylib.GetTouchPointId(i)
pos = raylib.GetTouchPosition(i)
raylib.DrawText "ID " + id + ": " + pos[0] + "," + pos[1], 10, 10 + i * 24, 20, color.black
end for
raylib.EndDrawing
end while
raylib.CloseWindow