整理代码

预设虚拟按键的键位移入virtualkey模块
This commit is contained in:
MrZ626
2021-08-17 18:35:26 +08:00
parent abaa962531
commit bafc8abfc0
4 changed files with 106 additions and 108 deletions

View File

@@ -117,15 +117,6 @@ if customData and customData.version==VERSION.code then TABLE.complete(customDat
TABLE.complete(require"parts.customEnv0",CUSTOMENV)
--First start for phones
if not fs.getInfo('conf/settings')and MOBILE then
SETTING.VKSwitch=true
SETTING.swap=false
SETTING.powerInfo=true
SETTING.cleanCanvas=true
end
if SETTING.fullscreen then love.window.setFullscreen(true)end
--Initialize image libs
IMG.init{
lock='media/image/mess/lock.png',
@@ -359,6 +350,14 @@ do
end
end
--First start for phones
if FIRSTLAUNCH and MOBILE then
SETTING.VKSwitch=true
SETTING.swap=false
SETTING.powerInfo=true
SETTING.cleanCanvas=true
end
--Apply system setting
applySettings()