我们设置屏幕的触发事件回调可以通过
if( 'touches' in sys.capabilities ) {
this.setTouchEnabled(true);
}
触发事件分单点与多点触发但可以通过this.setTouchMode(cc.TOUCH_ONE_BY_ONE);设置只触发单点事件。
我们设置屏幕的触发事件回调可以通过
if( 'touches' in sys.capabilities ) {
this.setTouchEnabled(true);
}
触发事件分单点与多点触发但可以通过this.setTouchMode(cc.TOUCH_ONE_BY_ONE);设置只触发单点事件。