force glove recalibration on backend initialize

This commit is contained in:
Mamadou Babaei
2024-02-27 00:34:00 +01:00
parent 64f717c698
commit 300c899c28
@@ -39,6 +39,7 @@
#include "SGConnect/SGConnect.h"
#include "SGCore/SGDeviceList.h"
#include "SGCore/SGHandLayer.h"
#include "SGLog/SGLog.h"
struct USGBackend::FImpl
@@ -114,6 +115,10 @@ bool USGBackend::InitializeBackend()
FSGDeviceList::Dispose();
FSGDeviceList::Reinitialize();
// Force reset the hands calibration.
FSGHandLayer::ResetCalibration(false);
FSGHandLayer::ResetCalibration(true);
bBackendInitialized = true;
return true;