Skip to content

Commit

Permalink
piano小程序用右ctrl/shift移半个调
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Nov 25, 2024
1 parent b365474 commit 4b64f1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/scene_app/piano.lua
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,10 @@ function scene.keyDown(key,isRep,keyCode)
elseif key=='f2' then
stopAllSounds()
layout=layoutData[TABLE.find(layoutData,layout)%#layoutData+1]
elseif key=='rshift' then
offset=clamp(offset+.5,-12,24)
elseif key=='rctrl' then
offset=clamp(offset-.5,-12,24)
elseif key=='right' then
offset=clamp(offset+(isKeyDown('left') and 0.5 or 1),-12,24)
elseif key=='left' then
Expand Down

0 comments on commit 4b64f1a

Please sign in to comment.