Add touchevents to menu items

This commit is contained in:
Sjef Verhoeven PE5PVB
2024-12-24 12:22:50 +01:00
parent 6cde51226a
commit 33777f62ee
3 changed files with 28 additions and 4 deletions
+9
View File
@@ -9,6 +9,15 @@ void doTouchEvent(uint16_t x, uint16_t y) {
if (scandxmode) {
cancelDXScan();
} else {
if (menu) {
if (menuopen) {
if (x > 18 && x < 78 && y > 150 && y < 190) KeyDown();
if (x > 240 && x < 300 && y > 150 && y < 190) KeyUp();
if (x > 240 && x < 300 && y > 40 && y < 80) ButtonPress();
return;
}
}
if (!menu && !BWtune) { // All pages except menu
if (x > 50 && x < 90 && y > 0 && y < 30 && band < BAND_GAP) { // ---------------------
doStereoToggle(); // Stereo toggle