Skip to content

Commit

Permalink
Use the OculusTouch3 controllers for WebXR session in Lynx R1
Browse files Browse the repository at this point in the history
Gecko does not provide support for the LynxR1 controlelrs, so we
use a similar one for now when entering in a WebXR session.
  • Loading branch information
javifernandez committed Jul 13, 2023
1 parent 38338e8 commit 925a4ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/cpp/ExternalVR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ mozilla::gfx::VRControllerType GetVRControllerTypeByDevice(device::DeviceType aT
// FIXME: Gecko does not support ML2 device yet, so let's use a similar one for WebXR.
result = mozilla::gfx::VRControllerType::OculusGo;
break;
case device::LynxR1:
// FIXME: Gecko does not support LynxR1 device yet, so let's use a similar one for WebXR.
result = mozilla::gfx::VRControllerType::OculusTouch3;
break;
case device::UnknownType:
default:
result = mozilla::gfx::VRControllerType::_empty;
Expand Down

0 comments on commit 925a4ab

Please sign in to comment.