Bug 1654863 - Update PicoVR controller profile names. r=kip
authorDaosheng Mu <daoshengmu@gmail.com>
Thu, 23 Jul 2020 18:48:30 +0000
changeset 541842 2879ab33ffccb5e681f615877a09084febf3caf6
parent 541841 3d260235d84cf4fa2becad03ceec0bd6cd09784e
child 541843 6e556d9c084532ca27fcf30353a88eb82b775595
push id122525
push userdmu@mozilla.com
push dateThu, 23 Jul 2020 20:20:50 +0000
treeherderautoland@2879ab33ffcc [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;
   }