这个可行么? 我用了下面代码测试,毫无作用…
this.scheduleOnce(function() { let x = 540; let y = 1000; let touch = new cc.Touch(x,y,1001); touch._setPoint(x,y); touch._setPrevPoint(x,y);
cc.inputManager.handleTouchesBegin([touch]); this.scheduleOnce(function() { cc.inputManager.handleTouchesEnd([touch]); }.bind(this), .1); }.bind(this), 2);