-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.GetTouchX
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Get touch position X for touch point 0 (relative to screen size)
None.
| Condition | Return Value |
|---|---|
| (always) | number |
raylib.InitWindow 800, 600, "Touch X Demo"
while not raylib.WindowShouldClose
raylib.BeginDrawing
raylib.ClearBackground color.white
x = raylib.GetTouchX
raylib.DrawText "Touch X: " + x, 10, 10, 20, color.black
raylib.EndDrawing
end while
raylib.CloseWindow