1
0
Fork 0

In mouse view mode <=> one could already move the view left/right/up/down

when dragging the mouse with middle mouse button (MMB) pressed (reset
with MMB+LMB):

Add support for forward/backward moving (MMB+KbdCtrl). With this one can,
for example, read what's written on the backside of the cup of coffee
on top of the screen in the E3B's operator room, or walk around between
the passenger seats in the fokker70 searching for the toilet.  :-)
This commit is contained in:
mfranz 2007-02-09 13:31:04 +00:00
parent 4b7c559b69
commit c587c9dd3a

View file

@ -294,14 +294,17 @@ current mode for each mouse is held in the
<wrap type="bool">false</wrap>
</binding>
<!-- Middle button pressed: move the view up and down -->
<!-- Middle button pressed, no Ctrl: move the view up and down -->
<binding>
<condition>
<and>
<not>
<property>/devices/status/mice/mouse[0]/button[0]</property>
</not>
<property>/devices/status/mice/mouse[0]/button[1]</property>
<property>/devices/status/mice/mouse[0]/button[1]</property>
<not>
<property>/devices/status/keyboard/ctrl</property>
</not>
</and>
</condition>
<command>property-adjust</command>
@ -310,6 +313,23 @@ current mode for each mouse is held in the
<wrap type="bool">false</wrap>
</binding>
<!-- Middle button and Ctrl pressed: move the view forward and backward -->
<binding>
<condition>
<and>
<not>
<property>/devices/status/mice/mouse[0]/button[0]</property>
</not>
<property>/devices/status/mice/mouse[0]/button[1]</property>
<property>/devices/status/keyboard/ctrl</property>
</and>
</condition>
<command>property-adjust</command>
<property>/sim/current-view/z-offset-m</property>
<factor type="double">1</factor>
<wrap type="bool">false</wrap>
</binding>
</y-axis>
</mode>