测试场景可以响应拖入文件/文件夹事件

This commit is contained in:
MrZ626
2021-05-09 21:22:59 +08:00
parent 2663e4d629
commit ac546e4f8d

View File

@@ -60,6 +60,12 @@ end
function scene.wheelMoved(dx,dy)
push(("[wheelMoved] <%d, %d>"):format(dx,dy))
end
function scene.fileDropped(file)
push(("[fileDropped] <%s>"):format(file:getFilename()))
end
function scene.directoryDropped(path)
push(("[directoryDropped] <%s>"):format(path))
end
function scene.update(dt)
if timer>0 then