hat doesn't work for me with this config. to fix it: axes mist be n="6" and n="7"
in quick_view definition: } if (dir == 3) { goal_heading_offset.setDoubleValue (getprop("/sim/view/config/heading-offset-deg")); goal_pitch_offset.setDoubleValue(10.0); // for example # (getprop("/sim/view/config/front-direction-deg")); view.fovProp.setDoubleValue (getprop("/sim/view/config/default-field-of-view-deg")); } if (dir == 4) { goal_heading_offset.setDoubleValue (getprop("/sim/view/config/heading-offset-deg")); goal_pitch_offset.setDoubleValue(-20.0); // for example # (getprop("/sim/view/config/back-direction-deg")); view.fovProp.setDoubleValue (getprop("/sim/view/config/default-field-of-view-deg")); } and of course set properly the calls to quick_fiev(0) likewise as whey were set for left-right: <axis n="7"> <desc>view reset/quick view front, +mod: vertical view pan</desc> <low> <repeatable type="bool">true</repeatable> <binding> <command>nasal</command> <script> <![CDATA[ trace("Axis 6, Hat: low!"); if (modifier.getValue()) { view.panViewPitch(0.5); } else { quick_view(4); } ]]> </script> </binding> <mod-up> <binding> <command>nasal</command> <script> if (!modifier.getValue()) { quick_view(0); } </script> </binding> </mod-up> </low> <high> <repeatable type="bool">true</repeatable> <binding> <command>nasal</command> <script> <![CDATA[ trace("Axis 6, Hat: high!"); if (modifier.getValue()) { view.panViewPitch(-0.5); } else { quick_view(3); } ]]> </script> </binding> <mod-up> <binding> <command>nasal</command> <script> if (!modifier.getValue()) { quick_view(0); } </script> </binding> </mod-up> </high> </axis> TODO: no support for diagonal directions, only seems to work in cockpit view, so up-down is not very useful -- This message was sent on behalf of c1498...@tyldd.com at openSubscriber.com http://www.opensubscriber.com/message/flightgear-devel@lists.sourceforge.net/10621787.html ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel