Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Query all Oculus controllers even if we get a bad reading from one. (#…
Browse files Browse the repository at this point in the history
…2984)

Fixes #2983
  • Loading branch information
bluemarvin authored Mar 23, 2020
1 parent e4cce14 commit 0ff7232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/oculusvr/cpp/DeviceDelegateOculusVR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,12 +383,12 @@ struct DeviceDelegateOculusVR::State {

for (ControllerState& controllerState: controllerStateList) {
if (controllerState.deviceId == ovrDeviceIdType_Invalid) {
return;
continue;
}
ovrTracking tracking = {};
if (vrapi_GetInputTrackingState(ovr, controllerState.deviceId, predictedDisplayTime, &tracking) != ovrSuccess) {
VRB_LOG("Failed to read controller tracking controllerStateList");
return;
continue;
}

device::CapabilityFlags flags = 0;
Expand Down

0 comments on commit 0ff7232

Please sign in to comment.