The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

d/survive: Add some debug gui entries

+22
+22
src/xrt/drivers/survive/survive_driver.c
··· 24 24 #include "util/u_debug.h" 25 25 #include "util/u_device.h" 26 26 #include "util/u_misc.h" 27 + #include "util/u_var.h" 27 28 #include "util/u_time.h" 28 29 #include "util/u_device.h" 29 30 #include "util/u_distortion_mesh.h" ··· 216 217 free(survive->sys); 217 218 } 218 219 m_relation_history_destroy(&survive->relation_hist); 220 + 221 + // Remove the variable tracking. 222 + u_var_remove_root(survive); 219 223 220 224 free(survive->last_inputs); 221 225 u_device_free(&survive->base); ··· 972 976 survive->last_inputs[i] = survive->base.inputs[i]; 973 977 } 974 978 979 + survive->hmd.use_default_ipd = debug_get_bool_option_survive_default_ipd(); 980 + 981 + u_var_add_root(survive, "Survive HMD Device", true); 982 + u_var_add_bool(survive, &survive->hmd.use_default_ipd, "Use default IPD"); 983 + u_var_add_f32(survive, &survive->hmd.ipd, "IPD"); 984 + 985 + u_var_add_f32(survive, &survive->base.hmd->distortion.fov[0].angle_down, "View 0 FovAngleDown"); 986 + u_var_add_f32(survive, &survive->base.hmd->distortion.fov[0].angle_left, "View 0 FovAngleLeft"); 987 + u_var_add_f32(survive, &survive->base.hmd->distortion.fov[0].angle_right, "View 0 FovAngleRight"); 988 + u_var_add_f32(survive, &survive->base.hmd->distortion.fov[0].angle_up, "View 0 FovAngleUp"); 989 + 990 + u_var_add_f32(survive, &survive->base.hmd->distortion.fov[1].angle_down, "View 1 FovAngleDown"); 991 + u_var_add_f32(survive, &survive->base.hmd->distortion.fov[1].angle_left, "View 1 FovAngleLeft"); 992 + u_var_add_f32(survive, &survive->base.hmd->distortion.fov[1].angle_right, "View 1 FovAngleRight"); 993 + u_var_add_f32(survive, &survive->base.hmd->distortion.fov[1].angle_up, "View 1 FovAngleUp"); 994 + 975 995 return true; 976 996 } 977 997 ··· 1144 1164 } 1145 1165 1146 1166 SURVIVE_DEBUG(survive, "Created Controller %d", idx); 1167 + 1168 + u_var_add_root(survive, "Survive Device", true); 1147 1169 1148 1170 return true; 1149 1171 }