Difference between revisions of "love.filedropped"

(Created page)
 
m (It is DroppedFile)
Line 7: Line 7:
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|File|file|The unopened File object representing the file that was dropped.}}
+
{{param|DroppedFile|file|The unopened File object representing the file that was dropped.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.

Revision as of 07:31, 10 December 2018

Available since LÖVE 0.10.0
This function is not supported in earlier versions.

Callback function triggered when a file is dragged and dropped onto the window.

Function

Synopsis

love.filedropped( file )

Arguments

DroppedFile file
The unopened File object representing the file that was dropped.

Returns

Nothing.

Notes

File:open must be called on the file before reading from or writing to it. File:getFilename will return the full platform-dependent path to the file.

See Also


Other Languages