From e49660a10f9b35a221fcb5e5ceddec6a300087c3 Mon Sep 17 00:00:00 2001 From: Josh Davidson Date: Mon, 24 Jun 2019 14:44:48 -0400 Subject: [PATCH] Sim: Add Shift-Click functionality to FCP, remove unused laptop mode --- AircraftConfig/acconfig.nas | 3 - AircraftConfig/help.xml | 5 - AircraftConfig/main.xml | 23 -- Models/FlightDeck/a320.flightdeck.xml | 430 ++++++++++++++++---------- revision.txt | 2 +- 5 files changed, 276 insertions(+), 187 deletions(-) diff --git a/AircraftConfig/acconfig.nas b/AircraftConfig/acconfig.nas index a332d690..6665fea6 100644 --- a/AircraftConfig/acconfig.nas +++ b/AircraftConfig/acconfig.nas @@ -85,7 +85,6 @@ setprop("/systems/acconfig/out-of-date", 0); setprop("/systems/acconfig/mismatch-code", "0x000"); setprop("/systems/acconfig/mismatch-reason", "XX"); setprop("/systems/acconfig/options/keyboard-mode", 0); -setprop("/systems/acconfig/options/laptop-mode", 0); setprop("/systems/acconfig/options/adirs-skip", 0); setprop("/systems/acconfig/options/welcome-skip", 0); setprop("/systems/acconfig/options/no-rendering-warn", 0); @@ -215,7 +214,6 @@ var renderingSettings = { var readSettings = func { io.read_properties(getprop("/sim/fg-home") ~ "/Export/IDG-A32X-config.xml", "/systems/acconfig/options"); setprop("/options/system/keyboard-mode", getprop("/systems/acconfig/options/keyboard-mode")); - setprop("/options/system/laptop-mode", getprop("/systems/acconfig/options/laptop-mode")); setprop("/controls/adirs/skip", getprop("/systems/acconfig/options/adirs-skip")); setprop("/sim/model/autopush/route/show", getprop("/systems/acconfig/options/autopush/show-route")); setprop("/sim/model/autopush/route/show-wingtip", getprop("/systems/acconfig/options/autopush/show-wingtip")); @@ -224,7 +222,6 @@ var readSettings = func { var writeSettings = func { setprop("/systems/acconfig/options/keyboard-mode", getprop("/options/system/keyboard-mode")); - setprop("/systems/acconfig/options/laptop-mode", getprop("/options/system/laptop-mode")); setprop("/systems/acconfig/options/adirs-skip", getprop("/controls/adirs/skip")); setprop("/systems/acconfig/options/autopush/show-route", getprop("/sim/model/autopush/route/show")); setprop("/systems/acconfig/options/autopush/show-wingtip", getprop("/sim/model/autopush/route/show-wingtip")); diff --git a/AircraftConfig/help.xml b/AircraftConfig/help.xml index 1796ae8e..73d60ecd 100644 --- a/AircraftConfig/help.xml +++ b/AircraftConfig/help.xml @@ -49,11 +49,6 @@ - - left - - - diff --git a/AircraftConfig/main.xml b/AircraftConfig/main.xml index cabc623e..6cd32c12 100644 --- a/AircraftConfig/main.xml +++ b/AircraftConfig/main.xml @@ -380,29 +380,6 @@ true - - - left - - /systems/acconfig/extra-stuff - - /options/system/laptop-mode - - property-toggle - /options/system/laptop-mode - - - dialog-apply - - - nasal - - - true - - left diff --git a/Models/FlightDeck/a320.flightdeck.xml b/Models/FlightDeck/a320.flightdeck.xml index 24145f0d..653300c6 100644 --- a/Models/FlightDeck/a320.flightdeck.xml +++ b/Models/FlightDeck/a320.flightdeck.xml @@ -503,7 +503,7 @@ - true + true @@ -529,7 +529,7 @@ - true + true @@ -569,7 +569,7 @@ RudderTrimReset - false + false @@ -599,11 +599,11 @@ number-value %2.1f fdm/jsbsim/hydraulics/rudder/trim-cmd-deg - false + false led.txf - true - false - false + true + false + false 0.009 32 @@ -625,11 +625,11 @@ text-value -88.8 autopilot/servicable - false + false led.txf - true - false - false + true + false + false 0.009 32 @@ -663,7 +663,7 @@ ParkBrk - false + false property-toggle controls/gear/brake-parking @@ -1202,7 +1202,7 @@ ecam_sts - false + false @@ -1221,7 +1221,7 @@ ecam_apu - false + false @@ -1240,7 +1240,7 @@ ecam_bleed - false + false @@ -1259,7 +1259,7 @@ ecam_press - false + false @@ -1278,7 +1278,7 @@ ecam_elec - false + false @@ -1297,7 +1297,7 @@ ecam_hyd - false + false @@ -1316,7 +1316,7 @@ ecam_fuel - false + false @@ -1335,7 +1335,7 @@ ecam_eng - false + false @@ -1354,7 +1354,7 @@ ecam_cond - false + false @@ -1373,7 +1373,7 @@ ecam_door - false + false @@ -1392,7 +1392,7 @@ ecam_wheel - false + false @@ -1411,7 +1411,7 @@ ecam_fctl - false + false @@ -1430,7 +1430,7 @@ ecam_to_config - false + false @@ -1655,7 +1655,7 @@ ecam_rcl - false + false @@ -1675,7 +1675,7 @@ ecam_clr_r - false + false @@ -1749,7 +1749,7 @@ - false + false property-cycle controls/engines/engine-start-switch @@ -1761,7 +1761,7 @@ - false + false property-cycle controls/engines/engine-start-switch @@ -1795,7 +1795,7 @@ - false + false @@ -1811,7 +1811,7 @@ - true + true nasal @@ -2825,7 +2825,7 @@ - false + false nasal @@ -2854,7 +2854,7 @@ - false + false nasal @@ -2863,7 +2863,7 @@ - false + false nasal @@ -2892,7 +2892,7 @@ - false + false nasal @@ -2901,7 +2901,7 @@ - false + false nasal @@ -2931,7 +2931,7 @@ - false + false nasal @@ -2940,7 +2940,7 @@ - false + false nasal @@ -2969,7 +2969,7 @@ vor-adf-1 - false + false property-cycle instrumentation/efis[0]/input/lh-vor-adf @@ -2980,7 +2980,7 @@ - false + false property-cycle instrumentation/efis[0]/input/lh-vor-adf @@ -3009,7 +3009,7 @@ vor-adf-1-right - false + false property-cycle instrumentation/efis[1]/input/lh-vor-adf @@ -3020,7 +3020,7 @@ - false + false property-cycle instrumentation/efis[1]/input/lh-vor-adf @@ -3049,7 +3049,7 @@ vor-adf-2 - false + false property-cycle instrumentation/efis[0]/input/rh-vor-adf @@ -3060,7 +3060,7 @@ - false + false property-cycle instrumentation/efis[0]/input/rh-vor-adf @@ -3089,7 +3089,7 @@ vor-adf-2-right - false + false property-cycle instrumentation/efis[1]/input/rh-vor-adf @@ -3100,7 +3100,7 @@ - false + false property-cycle instrumentation/efis[1]/input/rh-vor-adf @@ -3470,11 +3470,11 @@ number-value %3.0f it-autoflight/input/spd-kts - false + false led.txf - true - false - false + true + false + false 0.008 32 @@ -3496,11 +3496,11 @@ number-value %0.3f it-autoflight/input/spd-mach - false + false led.txf - true - false - false + true + false + false 0.008 32 @@ -3522,11 +3522,11 @@ text-value .888 autopilot/servicable - false + false led.txf - true - false - false + true + false + false 0.008 32 @@ -3548,11 +3548,11 @@ text-value %s it-autoflight/input/hdg - false + false led.txf - true - false - false + true + false + false 0.008 32 @@ -3574,11 +3574,11 @@ text-value 888 autopilot/servicable - false + false led.txf - true - false - false + true + false + false 0.008 32 @@ -3600,11 +3600,11 @@ text-value %s it-autoflight/input/alt - false + false led.txf - true - false - false + true + false + false 0.008 32 @@ -3626,11 +3626,11 @@ text-value 88888 autopilot/servicable - false + false led.txf - true - false - false + true + false + false 0.008 32 @@ -3652,11 +3652,11 @@ number-value %4.0f it-autoflight/input/vs - false + false led.txf - true - false - false + true + false + false 0.008 32 @@ -3678,11 +3678,11 @@ number-value %2.1f it-autoflight/input/fpa - false + false led.txf - true - false - false + true + false + false 0.008 32 @@ -3704,11 +3704,11 @@ text-value -8888 autopilot/servicable - false + false led.txf - true - false - false + true + false + false 0.008 32 @@ -3793,9 +3793,19 @@ true + + devices/status/keyboard/shift + nasal + + + devices/status/keyboard/shift + + nasal + + nasal @@ -3817,9 +3827,19 @@ true + + devices/status/keyboard/shift + nasal + + + devices/status/keyboard/shift + + nasal + + property-adjust it-autoflight/custom/spd-knb @@ -3833,9 +3853,19 @@ true + + devices/status/keyboard/shift + nasal + + + devices/status/keyboard/shift + + nasal + + property-adjust it-autoflight/custom/spd-knb @@ -3854,9 +3884,19 @@ false + + devices/status/keyboard/shift + nasal + + + devices/status/keyboard/shift + + nasal + + nasal @@ -3878,9 +3918,19 @@ true + + devices/status/keyboard/shift + nasal + + + devices/status/keyboard/shift + + nasal + + property-adjust it-autoflight/custom/hdg-knb @@ -3894,9 +3944,19 @@ true + + devices/status/keyboard/shift + nasal + + + devices/status/keyboard/shift + + nasal + + property-adjust it-autoflight/custom/hdg-knb @@ -4015,7 +4075,7 @@ ap2 - false + false nasal + + + devices/status/keyboard/shift + + nasal + + nasal @@ -4105,9 +4175,19 @@ true + + devices/status/keyboard/shift + nasal + + + devices/status/keyboard/shift + + nasal + + property-adjust it-autoflight/custom/alt-knb @@ -4121,9 +4201,19 @@ true + + devices/status/keyboard/shift + nasal + + + devices/status/keyboard/shift + + nasal + + property-adjust it-autoflight/custom/alt-knb @@ -4140,7 +4230,7 @@ alt-sel-mode - false + false property-toggle it-autoflight/config/altitude-dial-mode @@ -4159,9 +4249,19 @@ false + + devices/status/keyboard/shift + nasal + + + devices/status/keyboard/shift + + nasal + + nasal @@ -4183,9 +4283,19 @@ true + + devices/status/keyboard/shift + nasal + + + devices/status/keyboard/shift + + nasal + + property-adjust it-autoflight/custom/vs-knb @@ -4199,9 +4309,19 @@ true + + devices/status/keyboard/shift + nasal + + + devices/status/keyboard/shift + + nasal + + property-adjust it-autoflight/custom/vs-knb @@ -4261,7 +4381,7 @@ - false + false nasal @@ -4275,7 +4395,7 @@ - false + false nasal @@ -4311,7 +4431,7 @@ footrest_cpt - false + false nasal @@ -4339,7 +4459,7 @@ footrest_cpt2 - false + false nasal @@ -4367,7 +4487,7 @@ footrest_fo - false + false nasal @@ -4395,7 +4515,7 @@ footrest_fo2 - false + false nasal @@ -5169,7 +5289,7 @@ - true + true property-adjust /controls/flight/elevator-trim @@ -5179,7 +5299,7 @@ - true + true property-adjust /controls/flight/elevator-trim @@ -5278,7 +5398,7 @@ SpdBrk - false + false property-assign controls/flight/speedbrake @@ -5293,7 +5413,7 @@ - false + false nasal