[Solved]Use a file dropped onto an application

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Dr.Tyler O.
Citizen
Posts: 58
Joined: Tue Jul 29, 2014 9:17 am
Location: United States

[Solved]Use a file dropped onto an application

Post by Dr.Tyler O. »

I've noticed some forms of software allow you to drop a file onto the application, it opens the file inside the application, and uses it some way. How can I accomplish this with Love2D?
Last edited by Dr.Tyler O. on Sat Jul 04, 2015 10:05 pm, edited 1 time in total.
Any topic I have ever posted that I felt did not require a .love file, although they were requested, never required one so I would appreciate if you did not ask me to supply one unless you think that I am ignorant for not doing so.
User avatar
slime
Solid Snayke
Posts: 3166
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Use a file dropped onto an application

Post by slime »

This isn't possible with the LÖVE API in 0.9.x. In 0.10.0 you'll be able to use new love.filedropped and love.directorydropped event callbacks to detect and handle drag-and-drop situations with files / folders.
User avatar
Dr.Tyler O.
Citizen
Posts: 58
Joined: Tue Jul 29, 2014 9:17 am
Location: United States

Re: Use a file dropped onto an application

Post by Dr.Tyler O. »

slime wrote:This isn't possible with the LÖVE API in 0.9.x. In 0.10.0 you'll be able to use new love.filedropped and love.directorydropped event callbacks to detect and handle drag-and-drop situations with files / folders.
Alright, thank you.
Any topic I have ever posted that I felt did not require a .love file, although they were requested, never required one so I would appreciate if you did not ask me to supply one unless you think that I am ignorant for not doing so.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 4 guests