2017-07-28 14:59:23 +00:00
|
|
|
# A3XX mCDU by Joshua Davidson (it0uchpods) and Jonathan Redpath
|
|
|
|
|
2017-08-16 20:53:35 +00:00
|
|
|
#########################################
|
|
|
|
# Copyright (c) it0uchpods Design Group #
|
|
|
|
#########################################
|
2017-07-28 14:59:23 +00:00
|
|
|
|
|
|
|
var dataInput = func(key) {
|
|
|
|
if (key == "L1") {
|
|
|
|
setprop("/MCDU[0]/page", "POSMON");
|
|
|
|
}
|
2017-07-28 16:21:48 +00:00
|
|
|
if (key == "L2") {
|
|
|
|
setprop("/MCDU[0]/page", "IRSMON");
|
|
|
|
}
|
2017-07-31 13:43:13 +00:00
|
|
|
if (key == "R5") {
|
|
|
|
setprop("/MCDU[0]/page", "PRINTFUNC");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var printInput = func(key) {
|
|
|
|
if (key == "L1") {
|
|
|
|
setprop("/FMGC/print/mcdu/page1/L1auto", 1);
|
|
|
|
}
|
|
|
|
if (key == "L2") {
|
|
|
|
setprop("/FMGC/print/mcdu/page1/L2auto", 1);
|
|
|
|
}
|
|
|
|
if (key == "L3") {
|
|
|
|
setprop("/FMGC/print/mcdu/page1/L3auto", 1);
|
|
|
|
}
|
|
|
|
if (key == "L5") {
|
|
|
|
setprop("/MCDU[0]/page", "DATA");
|
|
|
|
}
|
|
|
|
if (key == "R1") {
|
|
|
|
setprop("/FMGC/print/mcdu/page1/R1req", 1);
|
|
|
|
}
|
|
|
|
if (key == "R2") {
|
|
|
|
setprop("/FMGC/print/mcdu/page1/R2req", 1);
|
|
|
|
}
|
|
|
|
if (key == "R3") {
|
|
|
|
setprop("/FMGC/print/mcdu/page1/R3req", 1);
|
|
|
|
}
|
2017-07-28 14:59:23 +00:00
|
|
|
}
|
2017-07-31 13:43:13 +00:00
|
|
|
|
|
|
|
var printInput2 = func(key) {
|
|
|
|
if (key == "L1") {
|
|
|
|
setprop("/FMGC/print/mcdu/page2/L1auto", 1);
|
|
|
|
}
|
|
|
|
if (key == "L2") {
|
|
|
|
setprop("/FMGC/print/mcdu/page2/L2auto", 1);
|
|
|
|
}
|
|
|
|
if (key == "L3") {
|
|
|
|
setprop("/FMGC/print/mcdu/page2/L3auto", 1);
|
|
|
|
}
|
|
|
|
if (key == "L4") {
|
|
|
|
setprop("/FMGC/print/mcdu/page2/L4auto", 1);
|
|
|
|
}
|
|
|
|
if (key == "L6") {
|
|
|
|
setprop("/MCDU[0]/page", "DATA");
|
|
|
|
}
|
|
|
|
if (key == "R1") {
|
|
|
|
setprop("/FMGC/print/mcdu/page2/R1req", 1);
|
|
|
|
}
|
|
|
|
if (key == "R2") {
|
|
|
|
setprop("/FMGC/print/mcdu/page2/R2req", 1);
|
|
|
|
}
|
|
|
|
if (key == "R3") {
|
|
|
|
setprop("/FMGC/print/mcdu/page2/R3req", 1);
|
|
|
|
}
|
|
|
|
if (key == "R4") {
|
|
|
|
setprop("/FMGC/print/mcdu/page2/R4req", 1);
|
|
|
|
}
|
|
|
|
}
|