Skip to content

Commit 76e861d

Browse files
committed
修piano小程序一个小问题
1 parent e08c2d2 commit 76e861d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/scene_app/piano.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,8 @@ function scene.keyDown(key,isRep,keyCode)
440440
if layout.keyMap[keyCode] then
441441
if isRep then return end
442442
local note=layout.keyMap[keyCode]+offset
443-
if isShiftDown() then note=note+1 end
444-
if isCtrlDown() then note=note-1 end
443+
if isKeyDown('lshift') then note=note+1 end
444+
if isKeyDown('lctrl') then note=note-1 end
445445
_param.tune=note-26
446446
_param.volume=isKeyDown('lalt') and .26 or 1
447447
_param.param[2]=(isKeyDown('space') and 4200 or release)*1.0594630943592953^(_param.tune)

0 commit comments

Comments
 (0)