Merge lines.love
This commit is contained in:
commit
c622737166
22
main.lua
22
main.lua
|
@ -317,6 +317,17 @@ function App.mousereleased(x,y, mouse_button)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function App.mousemoved(x,y, dx,dy, is_touch)
|
||||||
|
if current_app_is_warning() then return end
|
||||||
|
if Current_app == 'run' then
|
||||||
|
if run.mouse_move then run.mouse_move(dx,dy) end
|
||||||
|
elseif Current_app == 'source' then
|
||||||
|
if source.mouse_move then source.mouse_move(dx,dy) end
|
||||||
|
else
|
||||||
|
assert(false, 'unknown app "'..Current_app..'"')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function App.wheelmoved(dx,dy)
|
function App.wheelmoved(dx,dy)
|
||||||
if current_app_is_warning() then return end
|
if current_app_is_warning() then return end
|
||||||
if Current_app == 'run' then
|
if Current_app == 'run' then
|
||||||
|
@ -328,6 +339,17 @@ function App.wheelmoved(dx,dy)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function App.mousefocus(in_focus)
|
||||||
|
if current_app_is_warning() then return end
|
||||||
|
if Current_app == 'run' then
|
||||||
|
if run.mouse_focus then run.mouse_focus(in_focus) end
|
||||||
|
elseif Current_app == 'source' then
|
||||||
|
if source.mouse_focus then source.mouse_focus(in_focus) end
|
||||||
|
else
|
||||||
|
assert(false, 'unknown app "'..Current_app..'"')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function love.quit()
|
function love.quit()
|
||||||
if Disable_all_quit_handlers then return end
|
if Disable_all_quit_handlers then return end
|
||||||
if current_app_is_warning() then return end
|
if current_app_is_warning() then return end
|
||||||
|
|
Loading…
Reference in New Issue