Merge text.love
This commit is contained in:
commit
f08a485f07
3
app.lua
3
app.lua
|
@ -368,6 +368,7 @@ local Keys_down = {}
|
|||
-- can't run any tests after this
|
||||
function App.disable_tests()
|
||||
-- have LÖVE delegate all handlers to App if they exist
|
||||
-- make sure to late-bind handlers like LÖVE's defaults do
|
||||
for name in pairs(love.handlers) do
|
||||
if App[name] then
|
||||
-- love.keyboard.isDown doesn't work on Android, so emulate it using
|
||||
|
@ -383,7 +384,7 @@ function App.disable_tests()
|
|||
return App.keyreleased(key, scancode)
|
||||
end
|
||||
else
|
||||
love.handlers[name] = App[name]
|
||||
love.handlers[name] = function(...) App[name](...) end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue