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:
parent
f703b28d56
commit
97c9b06a7e
2 changed files with 34 additions and 0 deletions
|
@ -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>
|
||||
|
|
33
mice.xml
33
mice.xml
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue