summaryrefslogtreecommitdiffhomepage
path: root/x-plane-plugin
diff options
context:
space:
mode:
authorRies van Twisk <github@rvt.dds.nl>2019-12-29 10:18:52 +0100
committerRies van Twisk <github@rvt.dds.nl>2019-12-29 10:18:52 +0100
commit21f8efcd03c2351135481f345a14245d422f63b4 (patch)
treed5b10ef462c6a778d40252bc26a13444009e698c /x-plane-plugin
parent28c06bef4392108fc219c0accefe5a7db7c9f065 (diff)
parentc537acf6d7ebff26db9d5981d33d05fe7101baf6 (diff)
Merge branch 'unstable' of https://github.com/opentrack/opentrack into osx-build-fix
Diffstat (limited to 'x-plane-plugin')
-rw-r--r--x-plane-plugin/plugin.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/x-plane-plugin/plugin.c b/x-plane-plugin/plugin.c
index e988313b..ed72e50e 100644
--- a/x-plane-plugin/plugin.c
+++ b/x-plane-plugin/plugin.c
@@ -176,12 +176,19 @@ void volatile_explicit_bzero(void volatile* restrict ptr, size_t len)
PLUGIN_API OTR_GENERIC_EXPORT
int XPluginStart (char* outName, char* outSignature, char* outDescription) {
- view_x = XPLMFindDataRef("sim/aircraft/view/acf_peX");
- view_y = XPLMFindDataRef("sim/aircraft/view/acf_peY");
- view_z = XPLMFindDataRef("sim/aircraft/view/acf_peZ");
+ // view_x = XPLMFindDataRef("sim/aircraft/view/acf_peX");
+ // view_y = XPLMFindDataRef("sim/aircraft/view/acf_peY");
+ // view_z = XPLMFindDataRef("sim/aircraft/view/acf_peZ");
+ // view_heading = XPLMFindDataRef("sim/graphics/view/pilots_head_psi");
+ // view_pitch = XPLMFindDataRef("sim/graphics/view/pilots_head_the");
+ // view_roll = XPLMFindDataRef("sim/graphics/view/field_of_view_roll_deg");
+
+ view_x = XPLMFindDataRef("sim/graphics/view/pilots_head_x");
+ view_y = XPLMFindDataRef("sim/graphics/view/pilots_head_y");
+ view_z = XPLMFindDataRef("sim/graphics/view/pilots_head_z");
view_heading = XPLMFindDataRef("sim/graphics/view/pilots_head_psi");
view_pitch = XPLMFindDataRef("sim/graphics/view/pilots_head_the");
- view_roll = XPLMFindDataRef("sim/graphics/view/field_of_view_roll_deg");
+ view_roll = XPLMFindDataRef("sim/graphics/view/pilots_head_phi");
track_toggle = XPLMCreateCommand("opentrack/toggle", "Disable/Enable head tracking");
translation_disable_toggle = XPLMCreateCommand("opentrack/toggle_translation", "Disable/Enable input translation from opentrack");