Skip to content

Commit

Permalink
Use predicted time to fetch the controller input state (#2972)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Mar 17, 2020
1 parent 7f6d42c commit bbf56d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/oculusvr/cpp/DeviceDelegateOculusVR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ struct DeviceDelegateOculusVR::State {
return;
}
ovrTracking tracking = {};
if (vrapi_GetInputTrackingState(ovr, controllerState.deviceId, 0, &tracking) != ovrSuccess) {
if (vrapi_GetInputTrackingState(ovr, controllerState.deviceId, predictedDisplayTime, &tracking) != ovrSuccess) {
VRB_LOG("Failed to read controller tracking controllerStateList");
return;
}
Expand Down

0 comments on commit bbf56d4

Please sign in to comment.