October3d55/Matain/ViveOpenXR/Source/ViveOpenXRHMD/Private/ViveOpenXRNotificationsComp...

24 lines
657 B
C++
Raw Normal View History

2025-03-10 09:43:27 +08:00
// Copyright HTC Corporation. All Rights Reserved.
#include "ViveOpenXRNotificationsComponent.h"
#include "ViveOpenXRDelegates.h"
UViveOpenXRNotificationsComponent::UViveOpenXRNotificationsComponent(const FObjectInitializer & ObjectInitializer)
: Super(ObjectInitializer)
{
}
void UViveOpenXRNotificationsComponent::OnRegister()
{
Super::OnRegister();
FViveOpenXRDelegates::DisplayRefreshRateChanged.AddUObject(this, &UViveOpenXRNotificationsComponent::DisplayRefreshRateChangedDelegate_Handler);
}
void UViveOpenXRNotificationsComponent::OnUnregister()
{
Super::OnUnregister();
FViveOpenXRDelegates::DisplayRefreshRateChanged.RemoveAll(this);
}