Skip to content

Commit

Permalink
修复piano切布局报错
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Nov 20, 2024
1 parent 853afc3 commit f80b1e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/scene_app/piano.lua
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ function scene.keyDown(key,isRep,keyCode)
offset=MATH.clamp(offset+d,-12,24)
end
elseif key=='f1' then
layout=layoutList[TABLE.find(layoutList,layout-2)%layoutList+1]
layout=layoutList[(TABLE.find(layoutList,layout)-2)%#layoutList+1]
elseif key=='f2' then
layout=layoutList[TABLE.find(layoutList,layout)%layoutList+1]
layout=layoutList[TABLE.find(layoutList,layout)%#layoutList+1]
elseif key=='f3' then
release=math.max(release-100,0)
elseif key=='f4' then
Expand Down

0 comments on commit f80b1e7

Please sign in to comment.