Forráskód Böngészése

更新 'games/yqrxd/launcher/egret_loader.js'

yunhaipiaodi 6 éve
szülő
commit
6276bbcdb8
1 módosított fájl, 1 hozzáadás és 15 törlés
  1. 1 15
      games/yqrxd/launcher/egret_loader.js

+ 1 - 15
games/yqrxd/launcher/egret_loader.js

@@ -38,19 +38,5 @@ egret_h5.startGame = function () {
         throw new Error("找不到文档类!");
     }
 	
-  	//添加左右键盘按键操作
-    document.onkeydown = function (event) {
-        var e = event || window.event || arguments.callee.caller.arguments[0];
-
-
-        if(e && e.keyCode == 39){       //右方向键
-            document_class.ingame.clickBtnNum = 1;
-        }
-
-        if(e && e.keyCode == 37){       //左方向键
-            document_class.ingame.clickBtnNum = 0;
-        }
-        document_class.ingame.checkValue();
-    };
-
+  	
 };