force glove recalibration on backend initialize

This commit is contained in:
Mamadou Babaei
2024-03-22 20:59:17 +01:00
parent a7d9c4bfca
commit 503d13cabc
@@ -42,6 +42,7 @@
#endif /* PLATFORM_ANDROID */
#include "SGCore/SGDeviceList.h"
#include "SGCore/SGHandLayer.h"
#include "SGLog/SGLog.h"
struct USGBackend::FImpl
@@ -117,6 +118,10 @@ bool USGBackend::InitializeBackend()
FSGDeviceList::Dispose();
FSGDeviceList::Reinitialize();
// Force reset the hands calibration.
FSGHandLayer::ResetCalibration(false);
FSGHandLayer::ResetCalibration(true);
bBackendInitialized = true;
return true;