Two quick changes (read comments)
Added mouse wheel support to the mode select menu BGM now interatcs with pausing correctly
This commit is contained in:
10
main.lua
10
main.lua
@@ -259,11 +259,15 @@ function love.joystickhat(joystick, hat, direction)
|
||||
end
|
||||
end
|
||||
|
||||
function love.wheelmoved(x, y)
|
||||
scene:onInputPress({input=nil, type="wheel", x=x, y=y})
|
||||
end
|
||||
|
||||
function love.focus(f)
|
||||
if f and (scene.title ~= "Game" or not scene.paused) then
|
||||
resumeBGM()
|
||||
if f then
|
||||
resumeBGM(true)
|
||||
else
|
||||
pauseBGM()
|
||||
pauseBGM(true)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user