T-Watch fixes

This commit is contained in:
mverch67
2023-08-08 18:06:39 +02:00
parent 04bbdc6b8a
commit 0fe99b0caa
9 changed files with 41 additions and 20 deletions

View File

@@ -40,13 +40,13 @@ int32_t TouchScreenBase::runOnce()
int16_t x, y;
bool touched = getTouch(x, y);
if (touched) {
hapticFeedback();
this->setInterval(20);
_last_x = x;
_last_y = y;
}
if (touched != _touchedOld) {
if (touched) {
hapticFeedback();
_state = TOUCH_EVENT_OCCURRED;
_start = millis();
_first_x = x;