I need to reset the VR view using a SimVar (the same as hitting "SPACE" does). I only had success with re-setting the normal cockpit view in C++ using:
SimConnect_AddToDataDefinition(hSimConnect, DEFINITION_RESET_VIEW, "CAMERA REQUEST ACTION", "enum"); testValue = 1; SimConnect_SetDataOnSimObject(hSimConnect, DEFINITION_RESET_VIEW, SIMCONNECT_OBJECT_ID_USER, NULL, 0, sizeof(testValue), &testValue);
But I wasn't able to find anything like this to reset the VR VIEW, tested it with "CAMERA ACTION COCKPIT VIEW RESET" and the bool = true, too, but it didn't work.
Background: I'm using FS2020 as an IG for our own flight simulator with real instrument panels, they are visible using the cameras of the Varjo XR-3. And I need to match the virtual with the real world, so I have to programmatically reset the VR view (the pilot is not using the FS2020 controls, we have our own sidesticks going directly into our FDM/FCL.
Anyone knows how to re-set VR view programmatically via SimVars? Thanks!
Best from Germany
Andreas