Compilation fix for non-touch hardware
This commit is contained in:
committed by
Raphael Coeffic
parent
4f0ca997a8
commit
4fe2aaefe6
@@ -65,6 +65,7 @@ void Widget::checkEvents()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(HARDWARE_TOUCH)
|
||||||
bool Widget::onTouchEnd(coord_t x, coord_t y)
|
bool Widget::onTouchEnd(coord_t x, coord_t y)
|
||||||
{
|
{
|
||||||
TRACE_WINDOWS("Widget received touch end (%d) x=%d;y=%d",
|
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();
|
setFocus();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void Widget::paint(BitmapBuffer * dc)
|
void Widget::paint(BitmapBuffer * dc)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -84,7 +84,9 @@ class Widget : public Button
|
|||||||
// Window interface
|
// Window interface
|
||||||
void checkEvents() override;
|
void checkEvents() override;
|
||||||
void onEvent(event_t event) override;
|
void onEvent(event_t event) override;
|
||||||
|
#if defined(HARDWARE_TOUCH)
|
||||||
bool onTouchEnd(coord_t x, coord_t y) override;
|
bool onTouchEnd(coord_t x, coord_t y) override;
|
||||||
|
#endif
|
||||||
void paint(BitmapBuffer * dc) override;
|
void paint(BitmapBuffer * dc) override;
|
||||||
|
|
||||||
// Widget interface
|
// Widget interface
|
||||||
|
|||||||
Reference in New Issue
Block a user