2020-04-30 15:26:36 -04:00
|
|
|
# A3XX mCDU by Joshua Davidson (Octal450), Jonathan Redpath, and Matthew Maring (mattmaring)
|
2019-10-14 12:48:35 -04:00
|
|
|
|
2021-04-23 13:21:07 -04:00
|
|
|
# Copyright (c) 2021 Josh Davidson (Octal450)
|
2019-10-14 12:48:35 -04:00
|
|
|
|
|
|
|
var statusInput = func(key, i) {
|
|
|
|
if (key == "L3") {
|
|
|
|
fmgc.switchDatabase();
|
2020-05-17 17:53:43 +01:00
|
|
|
} elsif (key == "R5") {
|
2020-05-21 19:02:59 +01:00
|
|
|
if (fmgc.WaypointDatabase.confirm[i]) {
|
|
|
|
fmgc.WaypointDatabase.delete(i);
|
|
|
|
fmgc.WaypointDatabase.confirm[i] = 0;
|
2020-05-19 00:09:09 +01:00
|
|
|
} else {
|
2020-05-21 19:02:59 +01:00
|
|
|
fmgc.WaypointDatabase.confirm[i] = 1;
|
2020-05-19 00:09:09 +01:00
|
|
|
}
|
2019-10-14 12:48:35 -04:00
|
|
|
}
|
|
|
|
}
|