Check if gesture have been detected
raylib.InitWindow 800, 600, "Gesture Demo" raylib.SetGesturesEnabled raylib.GESTURE_TAP while not raylib.WindowShouldClose raylib.BeginDrawing raylib.ClearBackground color.white if raylib.IsGestureDetected(raylib.GESTURE_TAP) then raylib.DrawText "Tap detected!", 10, 10, 20, color.blue else raylib.DrawText "Tap the screen", 10, 10, 20, color.black end if raylib.EndDrawing end while raylib.CloseWindow
There was an error while loading. Please reload this page.