diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-11-27 12:28:56 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-11-27 12:28:56 +0100 |
commit | 2f954010c488ed66c7f79afbb259a2f72d3e78b1 (patch) | |
tree | d53cb312496d04e89355c998f9d648b5c6ee5f61 /dom/gamepad/GamepadManager.cpp | |
parent | 7504ca8ab4b0a145488f03c51a0f78ffd5682174 (diff) | |
download | UXP-2f954010c488ed66c7f79afbb259a2f72d3e78b1.tar UXP-2f954010c488ed66c7f79afbb259a2f72d3e78b1.tar.gz UXP-2f954010c488ed66c7f79afbb259a2f72d3e78b1.tar.lz UXP-2f954010c488ed66c7f79afbb259a2f72d3e78b1.tar.xz UXP-2f954010c488ed66c7f79afbb259a2f72d3e78b1.zip |
Remove VR Hardware input support (gamepad type)
This resolves #881
Diffstat (limited to 'dom/gamepad/GamepadManager.cpp')
-rw-r--r-- | dom/gamepad/GamepadManager.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/dom/gamepad/GamepadManager.cpp b/dom/gamepad/GamepadManager.cpp index dde71dd0a..e17829652 100644 --- a/dom/gamepad/GamepadManager.cpp +++ b/dom/gamepad/GamepadManager.cpp @@ -28,7 +28,6 @@ #include "nsIObserverService.h" #include "nsIServiceManager.h" #include "nsThreadUtils.h" -#include "VRManagerChild.h" #include "mozilla/Services.h" #include "mozilla/Unused.h" @@ -110,11 +109,6 @@ GamepadManager::StopMonitoring() } mChannelChildren.Clear(); mGamepads.Clear(); - -#if defined(XP_WIN) || defined(XP_MACOSX) || defined(XP_LINUX) - mVRChannelChild = gfx::VRManagerChild::Get(); - mVRChannelChild->SendControllerListenerRemoved(); -#endif } void @@ -211,11 +205,6 @@ uint32_t GamepadManager::GetGamepadIndexWithServiceType(uint32_t aIndex, newIndex = aIndex; break; } - case GamepadServiceType::VR: - { - newIndex = aIndex + VR_GAMEPAD_IDX_OFFSET; - break; - } default: MOZ_ASSERT(false); break; @@ -679,13 +668,6 @@ GamepadManager::ActorCreated(PBackgroundChild *aActor) MOZ_ASSERT(initedChild == child); child->SendGamepadListenerAdded(); mChannelChildren.AppendElement(child); - -#if defined(XP_WIN) || defined(XP_MACOSX) || defined(XP_LINUX) - // Construct VRManagerChannel and ask adding the connected - // VR controllers to GamepadManager - mVRChannelChild = gfx::VRManagerChild::Get(); - mVRChannelChild->SendControllerListenerAdded(); -#endif } //Override nsIIPCBackgroundChildCreateCallback |