1
0
Fork 0

mice.xml: don't let mouse move control surfaces while paused or replaying.

Avoids loss of control caused by movement of mouse while paused, if in
flight-control mode.

The new behaviour is enabled by default.

It can be disabled by manually setting
/sim/freeze-mouse-flight-controls-on-pause=false. But note that this property
is deliberately not archived so this needs to be done each time Flightgear is
run.
This commit is contained in:
Julian Smith 2020-12-21 16:08:45 +00:00
parent f703b28d56
commit 97c9b06a7e
2 changed files with 34 additions and 0 deletions

View file

@ -898,6 +898,7 @@ Started September 2000 by David Megginson, david@megginson.com
<mp-carriers>
<auto-attach type="bool" userarchive="y">true</auto-attach>
</mp-carriers>
<freeze-mouse-flight-controls-on-pause type="bool" userarchive="n">true</freeze-mouse-flight-controls-on-pause>
</sim>
<!-- accelerations -->
<accelerations>

View file

@ -115,6 +115,17 @@ current mode for each mouse is held in the
<not>
<property>/devices/status/mice/mouse[0]/button[1]</property>
</not>
<not>
<and>
<property>/sim/freeze-mouse-flight-controls-on-pause</property>
<or>
<property>/sim/replay/replay-state</property>
<property>/sim/freeze/master</property>
</or>
</and>
</not>
</and>
</condition>
<command>property-adjust</command>
@ -133,6 +144,17 @@ current mode for each mouse is held in the
<not>
<property>/devices/status/mice/mouse[0]/button[1]</property>
</not>
<not>
<and>
<property>/sim/freeze-mouse-flight-controls-on-pause</property>
<or>
<property>/sim/replay/replay-state</property>
<property>/sim/freeze/master</property>
</or>
</and>
</not>
</and>
</condition>
<command>property-adjust</command>
@ -161,6 +183,17 @@ current mode for each mouse is held in the
<not>
<property>/devices/status/mice/mouse[0]/button[1]</property>
</not>
<not>
<and>
<property>/sim/freeze-mouse-flight-controls-on-pause</property>
<or>
<property>/sim/replay/replay-state</property>
<property>/sim/freeze/master</property>
</or>
</and>
</not>
</and>
</condition>
<command>property-adjust</command>