I have my wheel set to zoom in view mode, and trim the elevator in control mode. (or at least I did until I removed the mouse control mode compltely). Pressing the MMB resets the zoom to default. I like it a lot, I can zoom in on a small instrument, switch over to pointer mode and click away, switch back and reset my view all very quickly. See attached file.

Josh

David Megginson wrote:

Paul Surgeon wrote:

1. I need an easy way of zooming in and out (scroll wheel?) so that the labels can be read and instruments adjusted.


For a while, I had "+", "-", and "=" assigned to that, with "=" snapping back to the default zoom. I think someone else changed it.

I'd be reluctant to use the scroll wheel, since it makes such a nice elevator trim wheel right now.


All the best,



David



_______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel

<?xml version="1.0"?>
<!--
Mouse binding definitions.

NOTE: CURRENTLY, THIS FILE IS USED ONLY IF YOU CONFIGURE FLIGHTGEAR
'with-new-mouse' AT BUILD TIME.

This file is included by preferences.xml, and uses the context of its
inclusion point; that means that you need to prepend "/input/mice"
to all property names.

Currently, Glut supports only one mouse, but the configuration format
is designed to support additional mice in the future if possible.

The current mode for each mouse is held in the
/devices/status/mice/mouse[n]/mode property.
-->


<PropertyList>

 <mouse n="0">

  <mode-count type="int">2</mode-count>
  <mode archive="y" type="int">0</mode>


  <mode n="0">

   <cursor>inherit</cursor>
   <constrained type="bool">false</constrained>
   <pass-through type="bool">true</pass-through>

   <button n="2">
    <binding>
     <command>property-assign</command>
     <property>/devices/status/mice/mouse[0]/mode</property>
     <value type="int">1</value>
    </binding>
   </button>

  </mode>

  <!-- Mode 1: view mode -->
  <mode n="1">

   <cursor>left-right</cursor>
   <constrained type="bool">false</constrained>
   <pass-through type="bool">true</pass-through>

   <!-- left button centres the offsets -->
   <button n="0">
    <binding>
     <command>property-assign</command>
     <property>/sim/current-view/heading-offset-deg</property>
     <value alias="/sim/view/config/front-direction-deg"/>
    </binding>
    <binding>
     <command>property-assign</command>
     <property>/sim/current-view/goal-pitch-offset-deg</property>
     <property>/sim/current-view/config/pitch-offset-deg</property>
    </binding>
   </button>

   <button n="1">
    <binding>
     <command>property-assign</command>
     <property>/sim/current-view/field-of-view</property>
     <value alias="/sim/view/config/default-field-of-view-deg"/>
    </binding>
   </button>
     
   <!-- right button switches modes -->
   <button n="2">
    <binding>
     <command>property-assign</command>
     <property>/devices/status/mice/mouse[0]/mode</property>
     <value type="int">0</value>
    </binding>
   </button>

   <button n="3">
    <binding>
     <command>property-multiply</command>
     <property>/sim/current-view/field-of-view</property>
     <factor type="double">0.952380952380</factor>
     <min type="double">5.0</min>
    </binding>
   </button>

   <button n="4">
    <binding>
     <command>property-multiply</command>
     <property>/sim/current-view/field-of-view</property>
     <factor type="double">1.05</factor>
     <max type="double">120.0</max>
    </binding>
   </button>

   <!-- Mouse left/right motion -->
   <x-axis>
    <!-- No buttons pressed: move the view position left or right -->
    <binding>
     <condition>
      <and>
       <not>
        <property>/devices/status/mice/mouse[0]/button[0]</property>
       </not>
       <not>
        <property>/devices/status/mice/mouse[0]/button[1]</property>
       </not>
      </and>
     </condition>
     <command>property-adjust</command>
     <property>/sim/current-view/heading-offset-deg</property>
     <factor type="double">-380</factor>
     <min type="double">0</min>
     <max type="double">360</max>
     <wrap type="bool">true</wrap>
    </binding>
   </x-axis>

   <!-- Mouse up/down motion -->
   <y-axis>
    <!-- No buttons pressed: tilt the view up and down -->
    <binding>
     <condition>
      <and>
       <not>
        <property>/devices/status/mice/mouse[0]/button[0]</property>
       </not>
       <not>
        <property>/devices/status/mice/mouse[0]/button[1]</property>
       </not>
      </and>
     </condition>
     <command>property-adjust</command>
     <property>/sim/current-view/pitch-offset-deg</property>
     <factor type="double">-180</factor>
     <min type="double">-90</min>
     <max type="double">90</max>
     <wrap type="bool">false</wrap>
    </binding>
   </y-axis>

  </mode>

 </mouse>

</PropertyList>

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to