mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-01 20:39:08 +00:00
Refactor OnTouchEvent functions to return boolean values for better event handling (#2854)
This commit is contained in:
@@ -77,7 +77,7 @@ ui::Widget* touch_widget(ui::Widget* const w, ui::TouchEvent event) {
|
||||
|
||||
ui::Widget* captured_widget{nullptr};
|
||||
|
||||
void OnTouchEvent(int, int, uint32_t) {
|
||||
bool OnTouchEvent(int, int, uint32_t) {
|
||||
if (standaloneViewMirror) {
|
||||
_api->exit_app();
|
||||
/* //left here for example, but not used in digital rain
|
||||
@@ -96,6 +96,7 @@ void OnTouchEvent(int, int, uint32_t) {
|
||||
captured_widget->on_touch(event);
|
||||
*/
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void OnFocus() {
|
||||
|
||||
Reference in New Issue
Block a user