This commit is contained in:
airstruck
2015-12-01 11:17:19 -05:00
parent 591bb7507a
commit 14b96f4cb5

View File

@@ -115,7 +115,7 @@ function Backend.show (layout)
return input:handleReshape(layout, width, height)
end)
hook(layout, 'mousepressed', function (x, y, button)
if love._version_minor < 10 and button == 'wu' or button == 'wd' then
if button == 'wu' or button == 'wd' then
return input:handleWheelMove(layout, 0, button == 'wu' and 1 or -1)
end
return input:handlePressStart(layout, getMouseButtonId(button), x, y)