整理代码
预设虚拟按键的键位移入virtualkey模块
This commit is contained in:
17
main.lua
17
main.lua
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user