Check if a file has been dropped into window
None.
raylib.InitWindow 800, 600, "File Drop Demo" while not raylib.WindowShouldClose raylib.BeginDrawing raylib.ClearBackground color.white if raylib.IsFileDropped then files = raylib.LoadDroppedFiles raylib.DrawText "Dropped: " + files[0], 10, 10, 20, color.blue raylib.UnloadDroppedFiles files else raylib.DrawText "Drop a file here", 10, 10, 20, color.black end if raylib.EndDrawing end while raylib.CloseWindow
There was an error while loading. Please reload this page.