|
@@ -617,14 +617,13 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
|
DIR: setDIR,
|
|
|
};
|
|
|
|
|
|
- if (this.isJoystickHasStream) {
|
|
|
- await this.sleep(10);
|
|
|
- }
|
|
|
-
|
|
|
const hasPush = await this.streamService.pushFrameToSteam(streamData);
|
|
|
if (hasPush.done) {
|
|
|
this.isJoystickHasStream = true;
|
|
|
console.log('joystick-hasPush', hasPush);
|
|
|
+ if (this.isJoystickHasStream) {
|
|
|
+ await this.sleep(30);
|
|
|
+ }
|
|
|
this.moveService.sendingFrameForJoystick = false;
|
|
|
const data = joystickRes as StreamReplyType;
|
|
|
console.log('handlejoystick-moveOver:' + data.moveOver);
|