支持鼠标滚动模式列表

This commit is contained in:
MrZ626
2021-12-16 02:07:49 +08:00
parent c9f8240234
commit 462720881a

View File

@@ -111,6 +111,13 @@ function scene.sceneInit()
searchTimer=0
end
function scene.mouseMove(x,y,_,dy)
x,y=x-40,y-150
if x<-40 or x>765 or y<-40 or y>570 then return end
if love.mouse.isDown(1)then
_scrollModes(1.26*dy)
end
end
function scene.mouseClick(x,y,k)
if k==1 then
local sel=false