Skip to content

Commit

Permalink
修piano小程序切布局只有一个方向会重置物件
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Nov 21, 2024
1 parent 6a3e2cf commit d4082d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/scene_app/piano.lua
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ function scene.keyDown(key,isRep,keyCode)
stopAllSounds()
layout=layoutData[(TABLE.find(layoutData,layout)-2)%#layoutData+1]
elseif key=='f2' then
stopAllSounds()
layout=layoutData[TABLE.find(layoutData,layout)%#layoutData+1]
elseif key=='right' then
offset=clamp(offset+(isKeyDown('left') and 0.5 or 1),-12,24)
Expand Down

0 comments on commit d4082d8

Please sign in to comment.