Hi All,
Like many people, I find I use the mouse in View mode, and x/X to zoom in on
the instruments in the cockpit.
While making an update to The Manual to document the various mouse modes and
controls, I noticed
that mice.xml defines the mouse scrollwheel for controlling trim in all three
modes (though not by the
same amount in each mode!).
The patch below changes this so that it controls the FoV instead when in View
mode. I find it more
intuitive than using x/X, which requires two hands (one for the mouse, and one
for the keyboard).
I'm guessing no-one uses the mouse-wheel trim function (I don't think it's
documented), and suspect
that even fewer people have used it while in view mode.
Any objections to me committing it?
-Stuart
Index: mice.xml
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/mice.xml,v
retrieving revision 1.20
diff -u -p -r1.20 mice.xml
--- mice.xml 1 Aug 2007 21:10:04 -0000 1.20
+++ mice.xml 11 Mar 2009 20:10:58 -0000
@@ -197,17 +197,19 @@ current mode for each mouse is held in t
<!-- these are often assigned to mouse-wheel motion in Linux -->
<button n="3">
<binding>
- <command>property-adjust</command>
- <property>/controls/flight/elevator-trim</property>
- <step type="double">0.01</step>
+ <command>nasal</command>
+ <script>
+ view.decrease();
+ </script>
</binding>
</button>
<button n="4">
<binding>
- <command>property-adjust</command>
- <property>/controls/flight/elevator-trim</property>
- <step type="double">-0.01</step>
+ <command>nasal</command>
+ <script>
+ view.increase();
+ </script>
</binding>
</button>
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel