Sim: Add toggle keyboard buttons to MCDU dialogs
This commit is contained in:
parent
0462960737
commit
20f159d28e
2 changed files with 30 additions and 4 deletions
|
@ -17,6 +17,18 @@
|
||||||
<halign>left</halign>
|
<halign>left</halign>
|
||||||
<label>Left MCDU</label>
|
<label>Left MCDU</label>
|
||||||
</text>
|
</text>
|
||||||
|
<button>
|
||||||
|
<halign>right</halign>
|
||||||
|
<pref-width>220</pref-width>
|
||||||
|
<pref-height>20</pref-height>
|
||||||
|
<legend>Toggle Keyboard Input</legend>
|
||||||
|
<live>true</live>
|
||||||
|
<property>/FMGC/keyboard-left</property>
|
||||||
|
<binding>
|
||||||
|
<command>property-toggle</command>
|
||||||
|
<property>/FMGC/keyboard-left</property>
|
||||||
|
</binding>
|
||||||
|
</button>
|
||||||
<button>
|
<button>
|
||||||
<halign>right</halign>
|
<halign>right</halign>
|
||||||
<pref-width>20</pref-width>
|
<pref-width>20</pref-width>
|
||||||
|
@ -24,8 +36,9 @@
|
||||||
<legend>X</legend>
|
<legend>X</legend>
|
||||||
<key>Esc</key>
|
<key>Esc</key>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>property-assign</command>
|
||||||
<script>setprop("FMGC/keyboard-left", 0);</script>
|
<property>/FMGC/keyboard-left</property>
|
||||||
|
<value>0</value>
|
||||||
</binding>
|
</binding>
|
||||||
<binding>
|
<binding>
|
||||||
<command>dialog-close</command>
|
<command>dialog-close</command>
|
||||||
|
|
|
@ -17,6 +17,18 @@
|
||||||
<halign>left</halign>
|
<halign>left</halign>
|
||||||
<label>Right MCDU</label>
|
<label>Right MCDU</label>
|
||||||
</text>
|
</text>
|
||||||
|
<button>
|
||||||
|
<halign>right</halign>
|
||||||
|
<pref-width>220</pref-width>
|
||||||
|
<pref-height>20</pref-height>
|
||||||
|
<legend>Toggle Keyboard Input</legend>
|
||||||
|
<live>true</live>
|
||||||
|
<property>/FMGC/keyboard-right</property>
|
||||||
|
<binding>
|
||||||
|
<command>property-toggle</command>
|
||||||
|
<property>/FMGC/keyboard-right</property>
|
||||||
|
</binding>
|
||||||
|
</button>
|
||||||
<button>
|
<button>
|
||||||
<halign>right</halign>
|
<halign>right</halign>
|
||||||
<pref-width>20</pref-width>
|
<pref-width>20</pref-width>
|
||||||
|
@ -24,8 +36,9 @@
|
||||||
<legend>X</legend>
|
<legend>X</legend>
|
||||||
<key>Esc</key>
|
<key>Esc</key>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>property-assign</command>
|
||||||
<script>setprop("FMGC/keyboard-right", 0);</script>
|
<property>/FMGC/keyboard-right</property>
|
||||||
|
<value>0</value>
|
||||||
</binding>
|
</binding>
|
||||||
<binding>
|
<binding>
|
||||||
<command>dialog-close</command>
|
<command>dialog-close</command>
|
||||||
|
|
Loading…
Reference in a new issue