libgoatvr

changeset 14:604a9a0a8c37

fixed call to ovrHmd_ConfigureTracking to stop setting the ovrTrackingCap_Idle bit
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 25 Sep 2014 07:52:49 +0300
parents e4c5c9c0b6f6
children 27fcd4c2969d
files src/vr_libovr.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/src/vr_libovr.c	Thu Sep 25 07:23:18 2014 +0300
     1.2 +++ b/src/vr_libovr.c	Thu Sep 25 07:52:49 2014 +0300
     1.3 @@ -35,6 +35,7 @@
     1.4  {
     1.5  	int i, num_hmds;
     1.6  	int use_fake = 0;
     1.7 +	ovrTrackingCaps tracking;
     1.8  
     1.9  	if(!ovr_Initialize()) {
    1.10  		return -1;
    1.11 @@ -72,7 +73,9 @@
    1.12  		return -1;
    1.13  	}
    1.14  
    1.15 -	ovrHmd_ConfigureTracking(hmd, 0xffffffff, 0);
    1.16 +	tracking = ovrTrackingCap_Orientation | ovrTrackingCap_Position |
    1.17 +		ovrTrackingCap_MagYawCorrection;
    1.18 +	ovrHmd_ConfigureTracking(hmd, tracking, 0);
    1.19  
    1.20  	eye_fov[0] = hmd->DefaultEyeFov[0];
    1.21  	eye_fov[1] = hmd->DefaultEyeFov[1];