场景模块支持directoryDropped事件
This commit is contained in:
@@ -329,6 +329,9 @@ function love.receiveData(id,data)end
|
|||||||
function love.filedropped(file)
|
function love.filedropped(file)
|
||||||
if SCN.fileDropped then SCN.fileDropped(file)end
|
if SCN.fileDropped then SCN.fileDropped(file)end
|
||||||
end
|
end
|
||||||
|
function love.directorydropped(dir)
|
||||||
|
if SCN.directoryDropped then SCN.directoryDropped(dir)end
|
||||||
|
end
|
||||||
local lastGCtime=0
|
local lastGCtime=0
|
||||||
function love.lowmemory()
|
function love.lowmemory()
|
||||||
if TIME()-lastGCtime>6.26 then
|
if TIME()-lastGCtime>6.26 then
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ local SCN={
|
|||||||
gamepadDown=false,
|
gamepadDown=false,
|
||||||
gamepadUp=false,
|
gamepadUp=false,
|
||||||
fileDropped=false,
|
fileDropped=false,
|
||||||
|
directoryDropped=false,
|
||||||
resize=false,
|
resize=false,
|
||||||
socketRead=false,
|
socketRead=false,
|
||||||
}--Scene datas, returned
|
}--Scene datas, returned
|
||||||
@@ -81,6 +82,7 @@ function SCN.init(s,org)
|
|||||||
SCN.gamepadDown=S.gamepadDown
|
SCN.gamepadDown=S.gamepadDown
|
||||||
SCN.gamepadUp=S.gamepadUp
|
SCN.gamepadUp=S.gamepadUp
|
||||||
SCN.fileDropped=S.fileDropped
|
SCN.fileDropped=S.fileDropped
|
||||||
|
SCN.directoryDropped=S.directoryDropped
|
||||||
SCN.resize=S.resize
|
SCN.resize=S.resize
|
||||||
SCN.socketRead=S.socketRead
|
SCN.socketRead=S.socketRead
|
||||||
if S.sceneInit then S.sceneInit(org)end
|
if S.sceneInit then S.sceneInit(org)end
|
||||||
|
|||||||
Reference in New Issue
Block a user