Fix Quest both hands get tracking state when only one is being tracked

This commit is contained in:
Pascal Serrarens 2024-02-21 10:38:46 +01:00
parent a3a2732060
commit 90b4c46988

View File

@ -86,7 +86,7 @@ namespace Passer.Tracking {
} }
if (OculusDevice.GetHandState(OculusDevice.Step.Render, isLeft ? OculusDevice.Hand.HandLeft : OculusDevice.Hand.HandRight, ref handState)) { if (OculusDevice.GetHandState(OculusDevice.Step.Render, isLeft ? OculusDevice.Hand.HandLeft : OculusDevice.Hand.HandRight, ref handState)) {
if (handState.Status == 0) { if ((handState.Status & OculusDevice.HandStatus.HandTracked) == 0) {
status = Tracker.Status.Present; status = Tracker.Status.Present;
DisableRenderer(); DisableRenderer();
return; return;