Compilation fix for non-touch hardware

This commit is contained in:
Raphael Coeffic
2021-05-06 12:55:59 +02:00
committed by Raphael Coeffic
parent 4f0ca997a8
commit 4fe2aaefe6
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -65,6 +65,7 @@ void Widget::checkEvents()
}
}
#if defined(HARDWARE_TOUCH)
bool Widget::onTouchEnd(coord_t x, coord_t y)
{
TRACE_WINDOWS("Widget received touch end (%d) x=%d;y=%d",
@@ -78,6 +79,7 @@ bool Widget::onTouchEnd(coord_t x, coord_t y)
setFocus();
return true;
}
#endif
void Widget::paint(BitmapBuffer * dc)
{
+2
View File
@@ -84,7 +84,9 @@ class Widget : public Button
// Window interface
void checkEvents() override;
void onEvent(event_t event) override;
#if defined(HARDWARE_TOUCH)
bool onTouchEnd(coord_t x, coord_t y) override;
#endif
void paint(BitmapBuffer * dc) override;
// Widget interface