mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
@@ -428,6 +428,12 @@ Message *Event::convert(const SDL_Event &e)
|
||||
}
|
||||
SDL_free(e.drop.file);
|
||||
break;
|
||||
case SDL_DROPBEGIN:
|
||||
msg = new Message("dropbegan");
|
||||
break;
|
||||
case SDL_DROPCOMPLETE:
|
||||
msg = new Message("dropcompleted");
|
||||
break;
|
||||
case SDL_QUIT:
|
||||
case SDL_APP_TERMINATING:
|
||||
msg = new Message("quit");
|
||||
|
||||
@@ -112,6 +112,12 @@ function love.createhandlers()
|
||||
directorydropped = function (dir)
|
||||
if love.directorydropped then return love.directorydropped(dir) end
|
||||
end,
|
||||
dropbegan = function ()
|
||||
if love.dropbegan then return love.dropbegan() end
|
||||
end,
|
||||
dropcompleted = function ()
|
||||
if love.dropcompleted then return love.dropcompleted() end
|
||||
end,
|
||||
lowmemory = function ()
|
||||
if love.lowmemory then love.lowmemory() end
|
||||
collectgarbage()
|
||||
|
||||
Reference in New Issue
Block a user