@3dsource/angular-unreal-module 0.0.77-dev.0 → 0.0.77-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2469,7 +2469,7 @@ class UnrealCommunicatorService {
2469
2469
  "{ ConsoleCommand: <string> }"
2470
2470
 
2471
2471
  2. A command to change the resolution to the given width and height.
2472
- "{ Resolution.Width: <value>, Resolution.Height: <value> } }"
2472
+ "{ Resolution.Width: <value>, Resolution.Height: <value> }"
2473
2473
  */
2474
2474
  emitCommand(descriptor) {
2475
2475
  this.emitDescriptor(EMessageType.Command, descriptor);
@@ -2538,7 +2538,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
2538
2538
 
2539
2539
  class InputService extends SubService {
2540
2540
  constructor() {
2541
- super(...arguments);
2541
+ super();
2542
2542
  this.commandsSender = inject(UnrealCommunicatorService);
2543
2543
  this.isDevMode = inject(DevModeService).isDevMode;
2544
2544
  this.defaultKeys = [
@@ -2571,9 +2571,9 @@ class InputService extends SubService {
2571
2571
  offsetByY: 0,
2572
2572
  offsetByX: 0,
2573
2573
  };
2574
+ this.init();
2574
2575
  }
2575
2576
  init() {
2576
- console.log('DEBUG: InputService init');
2577
2577
  const visibilityHiddenTrigger$ = fromEvent(document, 'visibilitychange').pipe(map$1(() => document.visibilityState === 'hidden'), filter(Truthy));
2578
2578
  const visibilityVisibleTrigger$ = fromEvent(document, 'visibilitychange').pipe(map$1(() => document.visibilityState === 'visible'), filter(Truthy), startWith(true));
2579
2579
  this.deactivatedVideoTrigger$ = merge(this.disconnect$, this.reInit$, visibilityHiddenTrigger$);
@@ -2583,6 +2583,9 @@ class InputService extends SubService {
2583
2583
  .pipe(filter(Truthy), startWith(true))), filter(([video]) => !!video))
2584
2584
  .subscribe(([video]) => this.setup(video));
2585
2585
  }
2586
+ fakeInit() {
2587
+ // it is for init
2588
+ }
2586
2589
  useKeyboardKeys(keys) {
2587
2590
  this.availableKeys = keys || [];
2588
2591
  }
@@ -4867,11 +4870,13 @@ class UnrealSceneComponent {
4867
4870
  onMouseOut() {
4868
4871
  this.changeMouseOverScene.emit(false);
4869
4872
  }
4870
- ngAfterViewInit() {
4871
- this.videoService.setContainer(this.container.nativeElement);
4873
+ ngOnInit() {
4872
4874
  this.streamStatusTelemetryService.init();
4873
4875
  this.aggregatorService.init();
4874
- this.inputService.useKeyboardKeys(this.inputService.defaultKeys);
4876
+ this.inputService.fakeInit();
4877
+ }
4878
+ ngAfterViewInit() {
4879
+ this.videoService.setContainer(this.container.nativeElement);
4875
4880
  fromEvent(this.element.nativeElement, 'contextmenu')
4876
4881
  .pipe(takeUntilDestroyed(this.destroyRef))
4877
4882
  .subscribe((event) => event.preventDefault());