Bug 1654863 - Update PicoVR controller profile names. r=kip
authorDaosheng Mu <daoshengmu@gmail.com>
Thu, 23 Jul 2020 18:48:30 +0000
changeset 541825 2879ab33ffccb5e681f615877a09084febf3caf6
parent 541824 3d260235d84cf4fa2becad03ceec0bd6cd09784e
child 541826 6e556d9c084532ca27fcf30353a88eb82b775595
push id37633
push userccoroiu@mozilla.com
push dateFri, 24 Jul 2020 09:32:06 +0000
treeherdermozilla-central@141543043270 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskip
bugs1654863
milestone80.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1654863 - Update PicoVR controller profile names. r=kip Differential Revision: https://phabricator.services.mozilla.com/D84743
dom/vr/XRInputSource.cpp
--- a/dom/vr/XRInputSource.cpp
+++ b/dom/vr/XRInputSource.cpp
@@ -86,23 +86,23 @@ nsTArray<nsString> GetInputSourceProfile
       break;
     case VRControllerType::PicoGaze:
       id.AssignLiteral("pico-gaze");
       profile.AppendElement(id);
       id.AssignLiteral("generic-button");
       profile.AppendElement(id);
       break;
     case VRControllerType::PicoG2:
-      id.AssignLiteral("pico-g-v2");
+      id.AssignLiteral("pico-g2");
       profile.AppendElement(id);
       id.AssignLiteral("generic-trigger-touchpad");
       profile.AppendElement(id);
       break;
     case VRControllerType::PicoNeo2:
-      id.AssignLiteral("pico-neo-v2");
+      id.AssignLiteral("pico-neo2");
       profile.AppendElement(id);
       id.AssignLiteral("generic-trigger-squeeze-thumbstick");
       profile.AppendElement(id);
       break;
     default:
       NS_WARNING("Unsupported XR input source profile.\n");
       break;
   }