From 8060fd715090f2458414dfeffdd66bd8b206afba Mon Sep 17 00:00:00 2001 From: libccy Date: Mon, 28 Mar 2016 16:03:24 +0800 Subject: [PATCH] ua --- game/game.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/game/game.js b/game/game.js index db00f253f..2ce8846f8 100755 --- a/game/game.js +++ b/game/game.js @@ -2946,6 +2946,14 @@ delete window.music; delete window.font; + if(!lib.config.totouched&&(lib.device=='ios'||lib.device=='android')){ + game.saveConfig('totouched',true); + game.saveConfig('touchscreen',true); + game.saveConfig('low_performance',true); + game.saveConfig('layout','phone'); + game.saveConfig('confirm_exit',true); + } + if(lib.config.extensions.length){ window.resetExtension=function(){ for(var i=0;i