-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.IsFileDropped
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Check if a file has been dropped into window
None.
| Condition | Return Value |
|---|---|
| (always) | number |
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