From 829f2af1af08b2008b6844346e2708e97adeda36 Mon Sep 17 00:00:00 2001 From: Felipe Erias Date: Wed, 26 Oct 2022 22:09:43 +0900 Subject: [PATCH] Fix build --- .../com/igalia/wolvic/ui/widgets/WebXRInterstitialWidget.java | 1 - app/src/main/cpp/DeviceDelegate.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/common/shared/com/igalia/wolvic/ui/widgets/WebXRInterstitialWidget.java b/app/src/common/shared/com/igalia/wolvic/ui/widgets/WebXRInterstitialWidget.java index 9f46ca2703f..ff5b24a1660 100644 --- a/app/src/common/shared/com/igalia/wolvic/ui/widgets/WebXRInterstitialWidget.java +++ b/app/src/common/shared/com/igalia/wolvic/ui/widgets/WebXRInterstitialWidget.java @@ -103,7 +103,6 @@ private void initializeControllers() { addController(DeviceType.PicoNeo3, WebXRInterstitialController.HAND_LEFT); addController(DeviceType.PicoNeo3, WebXRInterstitialController.HAND_RIGHT); } else if (DeviceType.isHVRBuild()) { - // TODO identify the specific type of controller if (PlatformActivity.isPositionTrackingSupported()) { addController(DeviceType.HVR6DoF, WebXRInterstitialController.HAND_LEFT); addController(DeviceType.HVR6DoF, WebXRInterstitialController.HAND_RIGHT); diff --git a/app/src/main/cpp/DeviceDelegate.h b/app/src/main/cpp/DeviceDelegate.h index 8a104c8f053..174e7963e2a 100644 --- a/app/src/main/cpp/DeviceDelegate.h +++ b/app/src/main/cpp/DeviceDelegate.h @@ -73,7 +73,7 @@ class DeviceDelegate { virtual void ReleaseControllerDelegate() = 0; virtual int32_t GetControllerModelCount() const = 0; virtual const std::string GetControllerModelName(const int32_t aModelIndex) const { return nullptr; }; - virtual bool IsPositionTrackingSupported() const = 0; + virtual bool IsPositionTrackingSupported() const { return false; }; virtual void SetCPULevel(const device::CPULevel aLevel) {}; virtual void ProcessEvents() = 0; virtual bool SupportsFramePrediction(FramePrediction aPrediction) const {