Skip to content

Commit

Permalink
修复键盘编辑自定义场地不能切换画笔,同时新增c为智能画笔快捷键
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Apr 19, 2022
1 parent 0c2f090 commit 9c2b09e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parts/scenes/custom_field.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ local penKey={
['1']=1,['2']=2,['3']=3,['4']=4,['5']=5,['6']=6,['7']=7,['8']=8,
q=9,w=10,e=11,r=12,t=13,y=14,u=15,i=16,
a=17,s=18,d=19,f=20,g=21,h=22,j=23,k=24,
z=0,x=-1,
z=0,x=-1,c=-2,
}
local minoPosCode={
[102]=1,[1121]=1,--Z
Expand Down Expand Up @@ -250,8 +250,8 @@ function scene.keyDown(key)
else
SCN.back()
end
else
pens[curPen]=penKey[key]or pens[curPen]
elseif penKey[key] then
pens[1]=penKey[key]
end
end
function scene.keyUp(key)
Expand Down

0 comments on commit 9c2b09e

Please sign in to comment.