|
@@ -609,6 +609,7 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
|
//const lastReply = JSON.stringify(joystickRes);
|
|
|
//this.moveService.updateUser(userId, breakPointId, lastReply);
|
|
|
}
|
|
|
+ // 共用_JoyStickingTimeout
|
|
|
clearTimeout(this._JoyStickingTimeout);
|
|
|
this._JoyStickingTimeout = setTimeout(() => {
|
|
|
// const complementFrame = this.moveService.complementFrame(
|
|
@@ -700,9 +701,9 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
|
if (complementFrame) {
|
|
|
pushJoyStickSteam(complementFrame);
|
|
|
} else {
|
|
|
+ this.moveService.stopJoystick(this.user_id);
|
|
|
this.onJoysticking.next(false);
|
|
|
this.resumeStream();
|
|
|
- this.joystickFrameCnt = -1;
|
|
|
}
|
|
|
}, 200);
|
|
|
} else {
|