Skip to content

raylib.GetTouchPointId

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get touch point identifier for given index

Parameters

Parameter Default Value Note
index 0

Return value

Condition Return Value
(always) number

Notes

Example

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

Clone this wiki locally