音乐室可以按住shift+字符反向快速跳转

This commit is contained in:
MrZ_26
2022-10-28 16:33:19 +08:00
parent 03fbfaa577
commit d79279d1cd

View File

@@ -59,7 +59,7 @@ function scene.keyDown(key,isRep)
SCN.back()
elseif #key==1 and key:find'[0-9a-z]' then
for _=1,#bgmList do
selected=selected%#bgmList+1
selected=(selected-1+(love.keyboard.isDown('lshift','rshift') and -1 or 1))%#bgmList+1
if bgmList[selected]:sub(1,1)==key then break end
end
end