| 1 |
<?xml version="1.0"?> |
| 2 |
|
| 3 |
<PropertyList> |
| 4 |
<name>mouse-config</name> |
| 5 |
|
| 6 |
<nasal> |
| 7 |
<open> |
| 8 |
var syncRadioState = func() |
| 9 |
{ |
| 10 |
var cycle = getprop("/sim/mouse/right-button-mode-cycle-enabled"); |
| 11 |
setprop("/sim/gui/dialogs/mouse-config/right-mouse-look", !cycle); |
| 12 |
setprop("/sim/gui/dialogs/mouse-config/right-mouse-cycle", cycle); |
| 13 |
} |
| 14 |
|
| 15 |
var rightMouseMode = func(newMode) |
| 16 |
{ |
| 17 |
var doCycle = (newMode == "cycle"); |
| 18 |
setprop("/sim/mouse/right-button-mode-cycle-enabled", doCycle); |
| 19 |
syncRadioState(); |
| 20 |
} |
| 21 |
|
| 22 |
syncRadioState(); |
| 23 |
</open> |
| 24 |
</nasal> |
| 25 |
|
| 26 |
<modal>false</modal> |
| 27 |
<layout>vbox</layout> |
| 28 |
|
| 29 |
|
| 30 |
<group> |
| 31 |
<layout>hbox</layout> |
| 32 |
|
| 33 |
<text> |
| 34 |
<label>Mouse Input Options</label> |
| 35 |
</text> |
| 36 |
|
| 37 |
<empty><stretch>1</stretch></empty> |
| 38 |
|
| 39 |
<button> |
| 40 |
<legend>X</legend> |
| 41 |
<key>Esc</key> |
| 42 |
<pref-width>20</pref-width> |
| 43 |
<pref-height>20</pref-height> |
| 44 |
<binding> |
| 45 |
<command>dialog-close</command> |
| 46 |
</binding> |
| 47 |
</button> |
| 48 |
</group> |
| 49 |
|
| 50 |
<hrule/> |
| 51 |
|
| 52 |
|
| 53 |
<group> |
| 54 |
<halign>left</halign> |
| 55 |
<valign>top</valign> |
| 56 |
<layout>table</layout> |
| 57 |
|
| 58 |
|
| 59 |
<text> |
| 60 |
<halign>left</halign> |
| 61 |
<label> </label> |
| 62 |
<row>0</row> |
| 63 |
<col>0</col> |
| 64 |
</text> |
| 65 |
|
| 66 |
<text> |
| 67 |
<halign>left</halign> |
| 68 |
<label>Pressing TAB cycles the mouse mode through different behaviours </label> |
| 69 |
<row>0</row> |
| 70 |
<col>1</col> |
| 71 |
</text> |
| 72 |
<text> |
| 73 |
<label>normal / flight-controls / view direction</label> |
| 74 |
<row>1</row> |
| 75 |
<col>1</col> |
| 76 |
</text> |
| 77 |
|
| 78 |
<text> |
| 79 |
<halign>left</halign> |
| 80 |
<label> </label> |
| 81 |
<row>2</row> |
| 82 |
<col>1</col> |
| 83 |
</text> |
| 84 |
|
| 85 |
<text> |
| 86 |
<halign>left</halign> |
| 87 |
<label>The right-mouse button can be used in two different ways:</label> |
| 88 |
<row>3</row> |
| 89 |
<col>1</col> |
| 90 |
</text> |
| 91 |
|
| 92 |
|
| 93 |
</group> |
| 94 |
|
| 95 |
|
| 96 |
<group> |
| 97 |
<halign>left</halign> |
| 98 |
<valign>top</valign> |
| 99 |
<layout>table</layout> |
| 100 |
|
| 101 |
|
| 102 |
<text> |
| 103 |
<halign>left</halign> |
| 104 |
<label> </label> |
| 105 |
<row>0</row> |
| 106 |
<col>0</col> |
| 107 |
</text> |
| 108 |
|
| 109 |
<radio> |
| 110 |
<halign>left</halign> |
| 111 |
<label> Press and hold right mouse to look around</label> |
| 112 |
<property>/sim/gui/dialogs/mouse-config/right-mouse-look</property> |
| 113 |
<live>true</live> |
| 114 |
<binding> |
| 115 |
<command>nasal</command> |
| 116 |
<script>rightMouseMode("look")</script> |
| 117 |
</binding> |
| 118 |
<row>0</row> |
| 119 |
<col>1</col> |
| 120 |
</radio> |
| 121 |
|
| 122 |
<radio> |
| 123 |
<halign>left</halign> |
| 124 |
<label> Click right mouse to cycle mouse behaviour</label> |
| 125 |
<property>/sim/gui/dialogs/mouse-config/right-mouse-cycle</property> |
| 126 |
<live>true</live> |
| 127 |
<binding> |
| 128 |
<command>nasal</command> |
| 129 |
<script>rightMouseMode("cycle")</script> |
| 130 |
</binding> |
| 131 |
<row>1</row> |
| 132 |
<col>1</col> |
| 133 |
</radio> |
| 134 |
|
| 135 |
|
| 136 |
<text> |
| 137 |
<row>3</row> |
| 138 |
<col>0</col> |
| 139 |
<label> </label> |
| 140 |
<halign>left</halign> |
| 141 |
</text> |
| 142 |
|
| 143 |
|
| 144 |
</group> |
| 145 |
|
| 146 |
|
| 147 |
<group> |
| 148 |
|
| 149 |
<halign>left</halign> |
| 150 |
<valign>top</valign> |
| 151 |
<layout>table</layout> |
| 152 |
|
| 153 |
|
| 154 |
<text> |
| 155 |
<halign>left</halign> |
| 156 |
<label> </label> |
| 157 |
<row>0</row> |
| 158 |
<col>0</col> |
| 159 |
</text> |
| 160 |
|
| 161 |
<checkbox> |
| 162 |
<halign>left</halign> |
| 163 |
<label> Disable flight-controls via mouse</label> |
| 164 |
<property>/sim/mouse/skip-flight-controls-mode</property> |
| 165 |
<binding> |
| 166 |
<command>dialog-apply</command> |
| 167 |
</binding> |
| 168 |
<row>0</row> |
| 169 |
<col>1</col> |
| 170 |
</checkbox> |
| 171 |
|
| 172 |
<text> |
| 173 |
<halign>left</halign> |
| 174 |
<label>Flight controls sensitivity</label> |
| 175 |
<row>1</row> |
| 176 |
<col>1</col> |
| 177 |
</text> |
| 178 |
<slider> |
| 179 |
<halign>left</halign> |
| 180 |
<min>0.1</min> |
| 181 |
<max>4.0</max> |
| 182 |
<step>0.1</step> |
| 183 |
<property>/sim/mouse/flight-controls-sensitivity</property> |
| 184 |
<binding> |
| 185 |
<command>dialog-apply</command> |
| 186 |
</binding> |
| 187 |
<row>1</row> |
| 188 |
<col>2</col> |
| 189 |
</slider> |
| 190 |
<text> |
| 191 |
<halign>left</halign> |
| 192 |
<format>%1.1f</format> |
| 193 |
<property>/sim/mouse/flight-controls-sensitivity</property> |
| 194 |
<live>true</live> |
| 195 |
<row>1</row> |
| 196 |
<col>3</col> |
| 197 |
</text> |
| 198 |
|
| 199 |
|
| 200 |
<text> |
| 201 |
<row>2</row> |
| 202 |
<col>0</col> |
| 203 |
<label> </label> |
| 204 |
<halign>left</halign> |
| 205 |
</text> |
| 206 |
|
| 207 |
|
| 208 |
</group> |
| 209 |
|
| 210 |
|
| 211 |
<group> |
| 212 |
|
| 213 |
<halign>left</halign> |
| 214 |
<valign>top</valign> |
| 215 |
<layout>table</layout> |
| 216 |
|
| 217 |
|
| 218 |
<text> |
| 219 |
<halign>left</halign> |
| 220 |
<label> </label> |
| 221 |
<row>0</row> |
| 222 |
<col>0</col> |
| 223 |
</text> |
| 224 |
|
| 225 |
<checkbox> |
| 226 |
<halign>left</halign> |
| 227 |
<label> Reverse mouse wheel direction</label> |
| 228 |
<property>/sim/mouse/invert-mouse-wheel</property> |
| 229 |
<binding> |
| 230 |
<command>dialog-apply</command> |
| 231 |
</binding> |
| 232 |
<row>0</row> |
| 233 |
<col>1</col> |
| 234 |
</checkbox> |
| 235 |
|
| 236 |
|
| 237 |
</group> |
| 238 |
|
| 239 |
|
| 240 |
<group> |
| 241 |
|
| 242 |
<halign>left</halign> |
| 243 |
<valign>top</valign> |
| 244 |
<layout>table</layout> |
| 245 |
|
| 246 |
|
| 247 |
<text> |
| 248 |
<halign>left</halign> |
| 249 |
<label> </label> |
| 250 |
<row>0</row> |
| 251 |
<col>0</col> |
| 252 |
</text> |
| 253 |
|
| 254 |
<checkbox> |
| 255 |
<halign>left</halign> |
| 256 |
<label> Mouse rudder also controls elevator</label> |
| 257 |
<property>/sim/mouse/mouse-rudder-elevator</property> |
| 258 |
<binding> |
| 259 |
<command>dialog-apply</command> |
| 260 |
</binding> |
| 261 |
<row>0</row> |
| 262 |
<col>1</col> |
| 263 |
</checkbox> |
| 264 |
|
| 265 |
|
| 266 |
<text> |
| 267 |
<row>1</row> |
| 268 |
<col>0</col> |
| 269 |
<label> </label> |
| 270 |
<halign>left</halign> |
| 271 |
</text> |
| 272 |
|
| 273 |
|
| 274 |
</group> |
| 275 |
|
| 276 |
|
| 277 |
<group> |
| 278 |
|
| 279 |
<halign>left</halign> |
| 280 |
<valign>top</valign> |
| 281 |
<layout>hbox</layout> |
| 282 |
|
| 283 |
|
| 284 |
<text> |
| 285 |
<halign>left</halign> |
| 286 |
<label> </label> |
| 287 |
</text> |
| 288 |
|
| 289 |
<text> |
| 290 |
<halign>left</halign> |
| 291 |
<label>Mouse wheel elevator-trim factor: </label> |
| 292 |
</text> |
| 293 |
<combo> |
| 294 |
<name>wheel-elevator-trim-factor</name> |
| 295 |
<halign>right</halign> |
| 296 |
<stretch>true</stretch> |
| 297 |
<pref-width>75</pref-width> |
| 298 |
<property>/sim/mouse/wheel-elevator-trim-factor</property> |
| 299 |
<value>0.1</value> |
| 300 |
<value>0.2</value> |
| 301 |
<value>0.5</value> |
| 302 |
<value>1.0</value> |
| 303 |
<value>2.0</value> |
| 304 |
<value>5.0</value> |
| 305 |
<value>10.0</value> |
| 306 |
<binding> |
| 307 |
<command>dialog-apply</command> |
| 308 |
<object-name>wheel-elevator-trim-factor</object-name> |
| 309 |
</binding> |
| 310 |
<binding> |
| 311 |
<command>dialog-update</command> |
| 312 |
</binding> |
| 313 |
</combo> |
| 314 |
|
| 315 |
|
| 316 |
<text> |
| 317 |
<row>1</row> |
| 318 |
<col>0</col> |
| 319 |
<label> </label> |
| 320 |
<halign>left</halign> |
| 321 |
</text> |
| 322 |
|
| 323 |
|
| 324 |
</group> |
| 325 |
|
| 326 |
<hrule/> |
| 327 |
|
| 328 |
<button> |
| 329 |
<legend>Close</legend> |
| 330 |
<default>true</default> |
| 331 |
<key>Esc</key> |
| 332 |
<binding> |
| 333 |
<command>dialog-apply</command> |
| 334 |
</binding> |
| 335 |
<binding> |
| 336 |
<command>dialog-close</command> |
| 337 |
</binding> |
| 338 |
</button> |
| 339 |
|
| 340 |
</PropertyList> |