mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 02:00:07 +09:00
parent
9b1124ccbd
commit
7cc01b1884
3 changed files with 1 additions and 27 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue