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 4668f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/scene_app/piano.lua
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ 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]
elseif key=='f3' then
Expand Down

0 comments on commit 4668f4a

Please sign in to comment.