You've already forked TEF6686_ESP32
Added repeated touch in menu
This commit is contained in:
@@ -18,7 +18,10 @@ void doTouchEvent(uint16_t x, uint16_t y) {
|
||||
if (menuopen) { // Menu navigation
|
||||
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) || (x > 130 && x < 190 && y > 150 && y < 190)) ButtonPress();
|
||||
if ((x > 240 && x < 300 && y > 40 && y < 80) || (x > 130 && x < 190 && y > 150 && y < 190)) {
|
||||
touchrepeat = false;
|
||||
ButtonPress();
|
||||
}
|
||||
return;
|
||||
} else {
|
||||
if (x > 8 && x < 158) {
|
||||
@@ -86,6 +89,7 @@ void doTouchEvent(uint16_t x, uint16_t y) {
|
||||
}
|
||||
}
|
||||
}
|
||||
touchrepeat = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ extern bool menu;
|
||||
extern bool menuopen;
|
||||
extern bool scandxmode;
|
||||
extern bool seek;
|
||||
extern bool touchrepeat;
|
||||
extern bool XDRGTKTCP;
|
||||
extern bool XDRGTKUSB;
|
||||
extern byte afpagenr;
|
||||
|
||||
Reference in New Issue
Block a user