mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-10 23:29:43 +00:00
Be more resilient in tap/swipe gesture handler
This commit is contained in:
parent
ac912ffd54
commit
28ecb323ba
@ -158,9 +158,13 @@ static void *_button_tap_delayed_thread(void *dummyptr) {
|
||||
joys.buttonDrawCallback(touchPrevEvent->currButtonDisplayChar);
|
||||
timedOut = 0;
|
||||
break;
|
||||
} else if (touchCurrEvent->event == TOUCH_DOWN) {
|
||||
LOG("WHOA : unexpected touch down, are you spamming the touchscreen?!");
|
||||
FREE(touchPrevEvent);
|
||||
touchPrevEvent = touchCurrEvent;
|
||||
continue;
|
||||
} else {
|
||||
LOG("OOPS : unexpected touch event : %d", touchCurrEvent->event);
|
||||
assert(false);
|
||||
__builtin_unreachable();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user