|
@@ -3317,22 +3317,6 @@ var __extends = this.__extends || function(c, d) {
|
|
|
};
|
|
|
|
|
|
|
|
|
- //添加左右键盘按键操作
|
|
|
- d.prototype.createKeyEvent = function(){
|
|
|
- document.onkeydown = function (event) {
|
|
|
- var e = event || window.event || arguments.callee.caller.arguments[0];
|
|
|
-
|
|
|
-
|
|
|
- if(e && e.keyCode == 39){ //右方向键
|
|
|
- this.clickBtnNum = 1;
|
|
|
- }
|
|
|
-
|
|
|
- if(e && e.keyCode == 37){ //左方向键
|
|
|
- this.clickBtnNum = 0;
|
|
|
- }
|
|
|
- this.checkValue();
|
|
|
- };
|
|
|
- }
|
|
|
|
|
|
d.prototype.doClickYes = function() {
|
|
|
0.3 > Math.random() ? this.ySound1.play() : 0.6 > Math.random() ? this.ySound2.play() : this.ySound3.play();
|