diff --git a/Aircraft CH-47F Plugin/Interfaces/CH-47FInterface.cs b/Aircraft CH-47F Plugin/Interfaces/CH-47FInterface.cs index b42f63c0..95e8f1a9 100644 --- a/Aircraft CH-47F Plugin/Interfaces/CH-47FInterface.cs +++ b/Aircraft CH-47F Plugin/Interfaces/CH-47FInterface.cs @@ -70,165 +70,165 @@ public CH47FInterface(string name) /// elements\[\x22(?'unit'.*?)-(?'position'.*?)-(?'element'.*)-(?'argId'\d{1,4})\x22\]\s*\=\s*(?'function'[a-zA-z0-9_]*)\(\'(?'cockpit'.*)\'\,(?'function_args'.*)\.((KEY)|(LSK))_(?'key'.{1,11})\x22\){0,1}\,.*device_commands\.(?'command'[a-zA-Z0-9_]*)\).* #region CDUs - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_1.ToString("d"), "342", "CDU (Left)", "MSN")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_2.ToString("d"), "343", "CDU (Left)", "FPLN")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_3.ToString("d"), "344", "CDU (Left)", "FD")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_4.ToString("d"), "345", "CDU (Left)", "IDX")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_5.ToString("d"), "346", "CDU (Left)", "DIR")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_6.ToString("d"), "347", "CDU (Left)", "SNSR")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_7.ToString("d"), "348", "CDU (Left)", "MFD_DATA")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_8.ToString("d"), "349", "CDU (Left)", "L1")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_9.ToString("d"), "350", "CDU (Left)", "L2")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_10.ToString("d"), "351", "CDU (Left)", "L3")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_11.ToString("d"), "352", "CDU (Left)", "L4")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_12.ToString("d"), "353", "CDU (Left)", "L5")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_13.ToString("d"), "354", "CDU (Left)", "L6")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_14.ToString("d"), "355", "CDU (Left)", "R1")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_15.ToString("d"), "356", "CDU (Left)", "R2")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_16.ToString("d"), "357", "CDU (Left)", "R3")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_17.ToString("d"), "358", "CDU (Left)", "R4")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_18.ToString("d"), "359", "CDU (Left)", "R5")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_19.ToString("d"), "360", "CDU (Left)", "R6")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_20.ToString("d"), "361", "CDU (Left)", "BRT")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_21.ToString("d"), "362", "CDU (Left)", "DIM")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_22.ToString("d"), "363", "CDU (Left)", "CNI")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_23.ToString("d"), "364", "CDU (Left)", "PAD")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_24.ToString("d"), "365", "CDU (Left)", "arrow left")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_25.ToString("d"), "366", "CDU (Left)", "arrow right")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_26.ToString("d"), "367", "CDU (Left)", "arrow up")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_27.ToString("d"), "368", "CDU (Left)", "arrow down")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_28.ToString("d"), "369", "CDU (Left)", "CLR")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_29.ToString("d"), "370", "CDU (Left)", "WPN")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_30.ToString("d"), "371", "CDU (Left)", "1")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_31.ToString("d"), "372", "CDU (Left)", "2")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_32.ToString("d"), "373", "CDU (Left)", "3")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_33.ToString("d"), "374", "CDU (Left)", "4")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_34.ToString("d"), "375", "CDU (Left)", "5")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_35.ToString("d"), "376", "CDU (Left)", "6")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_36.ToString("d"), "377", "CDU (Left)", "7")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_37.ToString("d"), "378", "CDU (Left)", "8")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_38.ToString("d"), "379", "CDU (Left)", "9")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_39.ToString("d"), "380", "CDU (Left)", "0")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_40.ToString("d"), "381", "CDU (Left)", "dot")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_41.ToString("d"), "382", "CDU (Left)", "MARK")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_42.ToString("d"), "383", "CDU (Left)", "slash")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_43.ToString("d"), "384", "CDU (Left)", "A")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_44.ToString("d"), "385", "CDU (Left)", "B")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_45.ToString("d"), "386", "CDU (Left)", "C")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_46.ToString("d"), "387", "CDU (Left)", "D")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_47.ToString("d"), "388", "CDU (Left)", "E")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_48.ToString("d"), "389", "CDU (Left)", "F")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_49.ToString("d"), "390", "CDU (Left)", "G")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_50.ToString("d"), "391", "CDU (Left)", "H")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_51.ToString("d"), "392", "CDU (Left)", "I")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_52.ToString("d"), "393", "CDU (Left)", "J")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_53.ToString("d"), "394", "CDU (Left)", "K")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_54.ToString("d"), "395", "CDU (Left)", "L")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_55.ToString("d"), "396", "CDU (Left)", "M")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_56.ToString("d"), "397", "CDU (Left)", "N")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_57.ToString("d"), "398", "CDU (Left)", "O")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_58.ToString("d"), "399", "CDU (Left)", "P")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_59.ToString("d"), "400", "CDU (Left)", "Q")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_60.ToString("d"), "401", "CDU (Left)", "R")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_61.ToString("d"), "402", "CDU (Left)", "S")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_62.ToString("d"), "403", "CDU (Left)", "T")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_63.ToString("d"), "404", "CDU (Left)", "U")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_64.ToString("d"), "405", "CDU (Left)", "V")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_65.ToString("d"), "406", "CDU (Left)", "W")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_66.ToString("d"), "407", "CDU (Left)", "X")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_67.ToString("d"), "408", "CDU (Left)", "Y")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_68.ToString("d"), "409", "CDU (Left)", "Z")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_69.ToString("d"), "410", "CDU (Left)", "SP")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_70.ToString("d"), "411", "CDU (Left)", "dash")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_71.ToString("d"), "412", "CDU (Left)", "TDL")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_72.ToString("d"), "413", "CDU (Left)", "ASE")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_73.ToString("d"), "414", "CDU (Left)", "empty")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_74.ToString("d"), "415", "CDU (Left)", "DATA")); - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_75.ToString("d"), "416", "CDU (Left)", "STAT")); - AddFunction(new Axis(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_77.ToString("d"), "982", 0.1d, 0.0d, 1.0d, "CDU (Left)", "CDU Outer Knob")); // elements["MFK1_KNOB_OUTER"] = axis_limited({0, 1}, _("Cockpit.CH47.MFK_OUTER_LEFT"), devices.CDU_LEFT, device_commands.Button_77, 982) - AddFunction(new Axis(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_76.ToString("d"), "983", 0.1d, 0.0d, 1.0d, "CDU (Left)", "CDU Inner Knob")); // elements["MFK1_KNOB_OUTER"] = axis_limited({0, 1}, _("Cockpit.CH47.MFK_OUTER_LEFT"), devices.CDU_LEFT, device_commands.Button_77, 982) - AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_78.ToString("d"), "984", "CDU (Left)", "CDU Pull Knob", "%.1f")); // elements["LAMPS_TEST"] = button({0, 1}, _("Cockpit.CH47.lamps_test_sw"), devices.CANTED_CONSOLE, device_commands.Button_44, 582, {{SOUND_SW07_OFF, SOUND_SW07_ON}}) + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_70.ToString("d"), "342", "CDU (Left)", "MSN")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_71.ToString("d"), "343", "CDU (Left)", "FPLN")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_72.ToString("d"), "344", "CDU (Left)", "FD")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_64.ToString("d"), "345", "CDU (Left)", "IDX")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_73.ToString("d"), "346", "CDU (Left)", "DIR")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_74.ToString("d"), "347", "CDU (Left)", "SNSR")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_75.ToString("d"), "348", "CDU (Left)", "MFD_DATA")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_50.ToString("d"), "349", "CDU (Left)", "L1")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_51.ToString("d"), "350", "CDU (Left)", "L2")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_52.ToString("d"), "351", "CDU (Left)", "L3")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_53.ToString("d"), "352", "CDU (Left)", "L4")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_54.ToString("d"), "353", "CDU (Left)", "L5")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_55.ToString("d"), "354", "CDU (Left)", "L6")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_56.ToString("d"), "355", "CDU (Left)", "R1")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_57.ToString("d"), "356", "CDU (Left)", "R2")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_58.ToString("d"), "357", "CDU (Left)", "R3")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_59.ToString("d"), "358", "CDU (Left)", "R4")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_60.ToString("d"), "359", "CDU (Left)", "R5")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_61.ToString("d"), "360", "CDU (Left)", "R6")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_62.ToString("d"), "361", "CDU (Left)", "BRT")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_63.ToString("d"), "362", "CDU (Left)", "DIM")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_76.ToString("d"), "363", "CDU (Left)", "CNI")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_77.ToString("d"), "364", "CDU (Left)", "PAD")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_4.ToString("d"), "365", "CDU (Left)", "arrow left")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_5.ToString("d"), "366", "CDU (Left)", "arrow right")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_6.ToString("d"), "367", "CDU (Left)", "arrow up")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_7.ToString("d"), "368", "CDU (Left)", "arrow down")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_8.ToString("d"), "369", "CDU (Left)", "CLR")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_78.ToString("d"), "370", "CDU (Left)", "WPN")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_11.ToString("d"), "371", "CDU (Left)", "1")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_12.ToString("d"), "372", "CDU (Left)", "2")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_13.ToString("d"), "373", "CDU (Left)", "3")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_14.ToString("d"), "374", "CDU (Left)", "4")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_15.ToString("d"), "375", "CDU (Left)", "5")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_16.ToString("d"), "376", "CDU (Left)", "6")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_17.ToString("d"), "377", "CDU (Left)", "7")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_18.ToString("d"), "378", "CDU (Left)", "8")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_19.ToString("d"), "379", "CDU (Left)", "9")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_10.ToString("d"), "380", "CDU (Left)", "0")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_20.ToString("d"), "381", "CDU (Left)", "dot")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_65.ToString("d"), "382", "CDU (Left)", "MARK")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_21.ToString("d"), "383", "CDU (Left)", "slash")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_23.ToString("d"), "384", "CDU (Left)", "A")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_24.ToString("d"), "385", "CDU (Left)", "B")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_25.ToString("d"), "386", "CDU (Left)", "C")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_26.ToString("d"), "387", "CDU (Left)", "D")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_27.ToString("d"), "388", "CDU (Left)", "E")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_28.ToString("d"), "389", "CDU (Left)", "F")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_29.ToString("d"), "390", "CDU (Left)", "G")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_30.ToString("d"), "391", "CDU (Left)", "H")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_31.ToString("d"), "392", "CDU (Left)", "I")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_32.ToString("d"), "393", "CDU (Left)", "J")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_33.ToString("d"), "394", "CDU (Left)", "K")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_34.ToString("d"), "395", "CDU (Left)", "L")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_35.ToString("d"), "396", "CDU (Left)", "M")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_36.ToString("d"), "397", "CDU (Left)", "N")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_37.ToString("d"), "398", "CDU (Left)", "O")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_38.ToString("d"), "399", "CDU (Left)", "P")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_39.ToString("d"), "400", "CDU (Left)", "Q")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_40.ToString("d"), "401", "CDU (Left)", "R")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_41.ToString("d"), "402", "CDU (Left)", "S")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_42.ToString("d"), "403", "CDU (Left)", "T")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_43.ToString("d"), "404", "CDU (Left)", "U")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_44.ToString("d"), "405", "CDU (Left)", "V")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_45.ToString("d"), "406", "CDU (Left)", "W")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_46.ToString("d"), "407", "CDU (Left)", "X")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_47.ToString("d"), "408", "CDU (Left)", "Y")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_48.ToString("d"), "409", "CDU (Left)", "Z")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_9.ToString("d"), "410", "CDU (Left)", "SP")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_22.ToString("d"), "411", "CDU (Left)", "dash")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_79.ToString("d"), "412", "CDU (Left)", "TDL")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_80.ToString("d"), "413", "CDU (Left)", "ASE")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_66.ToString("d"), "414", "CDU (Left)", "empty")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_81.ToString("d"), "415", "CDU (Left)", "DATA")); + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_82.ToString("d"), "416", "CDU (Left)", "STAT")); + AddFunction(new Axis(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_2.ToString("d"), "982", 0.1d, 0.0d, 1.0d, "CDU (Left)", "CDU Outer Knob")); // elements["MFK1_KNOB_OUTER"] = axis_limited({0, 1}, _("Cockpit.CH47.MFK_OUTER_LEFT"), devices.CDU_LEFT, device_commands.Button_77, 982) + AddFunction(new Axis(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_1.ToString("d"), "983", 0.1d, 0.0d, 1.0d, "CDU (Left)", "CDU Inner Knob")); // elements["MFK1_KNOB_OUTER"] = axis_limited({0, 1}, _("Cockpit.CH47.MFK_OUTER_LEFT"), devices.CDU_LEFT, device_commands.Button_77, 982) + AddFunction(new PushButton(this, devices.CDU_LEFT.ToString("d"), Commands.Button.Button_3.ToString("d"), "984", "CDU (Left)", "CDU Pull Knob", "%.1f")); // elements["LAMPS_TEST"] = button({0, 1}, _("Cockpit.CH47.lamps_test_sw"), devices.CANTED_CONSOLE, device_commands.Button_44, 582, {{SOUND_SW07_OFF, SOUND_SW07_ON}}) - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_1.ToString("d"), "417", "CDU (Right)", "MSN")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_2.ToString("d"), "418", "CDU (Right)", "FPLN")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_3.ToString("d"), "419", "CDU (Right)", "FD")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_4.ToString("d"), "420", "CDU (Right)", "IDX")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_5.ToString("d"), "421", "CDU (Right)", "DIR")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_6.ToString("d"), "422", "CDU (Right)", "SNSR")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_7.ToString("d"), "423", "CDU (Right)", "MFD_DATA")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_8.ToString("d"), "424", "CDU (Right)", "L1")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_9.ToString("d"), "425", "CDU (Right)", "L2")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_10.ToString("d"), "426", "CDU (Right)", "L3")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_11.ToString("d"), "427", "CDU (Right)", "L4")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_12.ToString("d"), "428", "CDU (Right)", "L5")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_13.ToString("d"), "429", "CDU (Right)", "L6")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_14.ToString("d"), "430", "CDU (Right)", "R1")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_15.ToString("d"), "431", "CDU (Right)", "R2")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_16.ToString("d"), "432", "CDU (Right)", "R3")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_17.ToString("d"), "433", "CDU (Right)", "R4")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_18.ToString("d"), "434", "CDU (Right)", "R5")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_19.ToString("d"), "435", "CDU (Right)", "R6")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_20.ToString("d"), "436", "CDU (Right)", "BRT")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_21.ToString("d"), "437", "CDU (Right)", "DIM")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_22.ToString("d"), "438", "CDU (Right)", "CNI")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_23.ToString("d"), "439", "CDU (Right)", "PAD")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_24.ToString("d"), "440", "CDU (Right)", "arrow left")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_25.ToString("d"), "441", "CDU (Right)", "arrow right")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_26.ToString("d"), "442", "CDU (Right)", "arrow up")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_27.ToString("d"), "443", "CDU (Right)", "arrow down")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_28.ToString("d"), "444", "CDU (Right)", "CLR")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_29.ToString("d"), "445", "CDU (Right)", "WPN")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_30.ToString("d"), "446", "CDU (Right)", "1")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_31.ToString("d"), "447", "CDU (Right)", "2")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_32.ToString("d"), "448", "CDU (Right)", "3")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_33.ToString("d"), "449", "CDU (Right)", "4")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_34.ToString("d"), "450", "CDU (Right)", "5")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_35.ToString("d"), "451", "CDU (Right)", "6")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_36.ToString("d"), "452", "CDU (Right)", "7")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_37.ToString("d"), "453", "CDU (Right)", "8")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_38.ToString("d"), "454", "CDU (Right)", "9")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_39.ToString("d"), "455", "CDU (Right)", "0")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_40.ToString("d"), "456", "CDU (Right)", "dot")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_41.ToString("d"), "457", "CDU (Right)", "MARK")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_42.ToString("d"), "458", "CDU (Right)", "slash")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_43.ToString("d"), "459", "CDU (Right)", "A")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_44.ToString("d"), "460", "CDU (Right)", "B")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_45.ToString("d"), "461", "CDU (Right)", "C")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_46.ToString("d"), "462", "CDU (Right)", "D")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_47.ToString("d"), "463", "CDU (Right)", "E")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_48.ToString("d"), "464", "CDU (Right)", "F")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_49.ToString("d"), "465", "CDU (Right)", "G")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_50.ToString("d"), "466", "CDU (Right)", "H")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_51.ToString("d"), "467", "CDU (Right)", "I")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_52.ToString("d"), "468", "CDU (Right)", "J")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_53.ToString("d"), "469", "CDU (Right)", "K")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_54.ToString("d"), "470", "CDU (Right)", "L")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_55.ToString("d"), "471", "CDU (Right)", "M")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_56.ToString("d"), "472", "CDU (Right)", "N")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_57.ToString("d"), "473", "CDU (Right)", "O")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_58.ToString("d"), "474", "CDU (Right)", "P")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_59.ToString("d"), "475", "CDU (Right)", "Q")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_60.ToString("d"), "476", "CDU (Right)", "R")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_61.ToString("d"), "477", "CDU (Right)", "S")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_62.ToString("d"), "478", "CDU (Right)", "T")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_63.ToString("d"), "479", "CDU (Right)", "U")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_64.ToString("d"), "480", "CDU (Right)", "V")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_65.ToString("d"), "481", "CDU (Right)", "W")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_66.ToString("d"), "482", "CDU (Right)", "X")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_67.ToString("d"), "483", "CDU (Right)", "Y")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_68.ToString("d"), "484", "CDU (Right)", "Z")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_69.ToString("d"), "485", "CDU (Right)", "SP")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_70.ToString("d"), "486", "CDU (Right)", "dash")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_71.ToString("d"), "487", "CDU (Right)", "TDL")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_72.ToString("d"), "488", "CDU (Right)", "ASE")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_73.ToString("d"), "489", "CDU (Right)", "empty")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_74.ToString("d"), "490", "CDU (Right)", "DATA")); - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_75.ToString("d"), "492", "CDU (Right)", "STAT")); - AddFunction(new Axis(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_77.ToString("d"), "985", 0.1d, 0.0d, 1.0d, "CDU (Right)", "CDU Outer Knob")); // elements["MFK2_KNOB_OUTER"] = axis_limited({0, 1}, _("Cockpit.CH47.MFK_OUTER_RIGHT"), devices.CDU_RIGHT, device_commands.Button_77, 985) - AddFunction(new Axis(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_76.ToString("d"), "986", 0.1d, 0.0d, 1.0d, "CDU (Right)", "CDU Inner Knob")); // elements["MFK2_KNOB_OUTER"] = axis_limited({0, 1}, _("Cockpit.CH47.MFK_OUTER_RIGHT"), devices.CDU_RIGHT, device_commands.Button_77, 985) + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_70.ToString("d"), "417", "CDU (Right)", "MSN")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_71.ToString("d"), "418", "CDU (Right)", "FPLN")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_72.ToString("d"), "419", "CDU (Right)", "FD")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_64.ToString("d"), "420", "CDU (Right)", "IDX")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_73.ToString("d"), "421", "CDU (Right)", "DIR")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_74.ToString("d"), "422", "CDU (Right)", "SNSR")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_75.ToString("d"), "423", "CDU (Right)", "MFD_DATA")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_50.ToString("d"), "424", "CDU (Right)", "L1")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_51.ToString("d"), "425", "CDU (Right)", "L2")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_52.ToString("d"), "426", "CDU (Right)", "L3")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_53.ToString("d"), "427", "CDU (Right)", "L4")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_54.ToString("d"), "428", "CDU (Right)", "L5")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_55.ToString("d"), "429", "CDU (Right)", "L6")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_56.ToString("d"), "430", "CDU (Right)", "R1")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_57.ToString("d"), "431", "CDU (Right)", "R2")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_58.ToString("d"), "432", "CDU (Right)", "R3")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_59.ToString("d"), "433", "CDU (Right)", "R4")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_60.ToString("d"), "434", "CDU (Right)", "R5")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_61.ToString("d"), "435", "CDU (Right)", "R6")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_62.ToString("d"), "436", "CDU (Right)", "BRT")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_63.ToString("d"), "437", "CDU (Right)", "DIM")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_76.ToString("d"), "438", "CDU (Right)", "CNI")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_77.ToString("d"), "439", "CDU (Right)", "PAD")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_4.ToString("d"), "440", "CDU (Right)", "arrow left")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_5.ToString("d"), "441", "CDU (Right)", "arrow right")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_6.ToString("d"), "442", "CDU (Right)", "arrow up")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_7.ToString("d"), "443", "CDU (Right)", "arrow down")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_8.ToString("d"), "444", "CDU (Right)", "CLR")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_78.ToString("d"), "445", "CDU (Right)", "WPN")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_11.ToString("d"), "446", "CDU (Right)", "1")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_12.ToString("d"), "447", "CDU (Right)", "2")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_13.ToString("d"), "448", "CDU (Right)", "3")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_14.ToString("d"), "449", "CDU (Right)", "4")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_15.ToString("d"), "450", "CDU (Right)", "5")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_16.ToString("d"), "451", "CDU (Right)", "6")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_17.ToString("d"), "452", "CDU (Right)", "7")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_18.ToString("d"), "453", "CDU (Right)", "8")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_19.ToString("d"), "454", "CDU (Right)", "9")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_10.ToString("d"), "455", "CDU (Right)", "0")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_20.ToString("d"), "456", "CDU (Right)", "dot")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_65.ToString("d"), "457", "CDU (Right)", "MARK")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_21.ToString("d"), "458", "CDU (Right)", "slash")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_23.ToString("d"), "459", "CDU (Right)", "A")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_24.ToString("d"), "460", "CDU (Right)", "B")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_25.ToString("d"), "461", "CDU (Right)", "C")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_26.ToString("d"), "462", "CDU (Right)", "D")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_27.ToString("d"), "463", "CDU (Right)", "E")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_28.ToString("d"), "464", "CDU (Right)", "F")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_29.ToString("d"), "465", "CDU (Right)", "G")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_30.ToString("d"), "466", "CDU (Right)", "H")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_31.ToString("d"), "467", "CDU (Right)", "I")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_32.ToString("d"), "468", "CDU (Right)", "J")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_33.ToString("d"), "469", "CDU (Right)", "K")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_34.ToString("d"), "470", "CDU (Right)", "L")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_35.ToString("d"), "471", "CDU (Right)", "M")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_36.ToString("d"), "472", "CDU (Right)", "N")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_37.ToString("d"), "473", "CDU (Right)", "O")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_38.ToString("d"), "474", "CDU (Right)", "P")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_39.ToString("d"), "475", "CDU (Right)", "Q")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_40.ToString("d"), "476", "CDU (Right)", "R")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_41.ToString("d"), "477", "CDU (Right)", "S")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_42.ToString("d"), "478", "CDU (Right)", "T")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_43.ToString("d"), "479", "CDU (Right)", "U")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_44.ToString("d"), "480", "CDU (Right)", "V")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_45.ToString("d"), "481", "CDU (Right)", "W")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_46.ToString("d"), "482", "CDU (Right)", "X")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_47.ToString("d"), "483", "CDU (Right)", "Y")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_48.ToString("d"), "484", "CDU (Right)", "Z")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_9.ToString("d"), "485", "CDU (Right)", "SP")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_22.ToString("d"), "486", "CDU (Right)", "dash")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_79.ToString("d"), "487", "CDU (Right)", "TDL")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_80.ToString("d"), "488", "CDU (Right)", "ASE")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_66.ToString("d"), "489", "CDU (Right)", "empty")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_81.ToString("d"), "490", "CDU (Right)", "DATA")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_82.ToString("d"), "492", "CDU (Right)", "STAT")); + AddFunction(new Axis(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_2.ToString("d"), "985", 0.1d, 0.0d, 1.0d, "CDU (Right)", "CDU Outer Knob")); // elements["MFK2_KNOB_OUTER"] = axis_limited({0, 1}, _("Cockpit.CH47.MFK_OUTER_RIGHT"), devices.CDU_RIGHT, device_commands.Button_77, 985) + AddFunction(new Axis(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_1.ToString("d"), "986", 0.1d, 0.0d, 1.0d, "CDU (Right)", "CDU Inner Knob")); // elements["MFK2_KNOB_OUTER"] = axis_limited({0, 1}, _("Cockpit.CH47.MFK_OUTER_RIGHT"), devices.CDU_RIGHT, device_commands.Button_77, 985) /// TODO: This looks wrong - it has the same command code as the Left CDU Pull knob - AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_78.ToString("d"), "987", "CDU (Right)", "CDU Pull Knob", "%.1f")); + AddFunction(new PushButton(this, devices.CDU_RIGHT.ToString("d"), Commands.Button.Button_3.ToString("d"), "987", "CDU (Right)", "CDU Pull Knob", "%.1f")); #endregion #region MFDs diff --git a/InterfaceFiles/Interfaces b/InterfaceFiles/Interfaces index 4ddcec05..41855eed 160000 --- a/InterfaceFiles/Interfaces +++ b/InterfaceFiles/Interfaces @@ -1 +1 @@ -Subproject commit 4ddcec051f5d09293400dd16f24de439ae8be661 +Subproject commit 41855eed57dba54a9d7a4a55357d7d8d0ea22fca