mozilla::ipc::IPCResult VRManagerParent::RecvControllerListenerRemoved() { mHaveControllerListener = false; VRManager* vm = VRManager::Get(); vm->RemoveControllers(); return IPC_OK(); }
mozilla::ipc::IPCResult VRManagerParent::RecvControllerListenerAdded() { // Force update the available controllers for GamepadManager, // remove the existing controllers and sync them by NotifyVsync(). VRManager* vm = VRManager::Get(); vm->RemoveControllers(); mHaveControllerListener = true; return IPC_OK(); }