summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarc UME <m.ume@muconsulting.eu>2019-12-24 11:28:42 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-12-24 16:48:15 +0100
commitb8e7865a017363e9d3876539936a6f73310a99d9 (patch)
tree3fd3c771f91c6712b8e86e264b0543638cb20e0a
parentebf9de109b86336b8844fc6fd15a34760481de5e (diff)
x-plane 11 plugins fixes
-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");