feat(Display): Improve touch handling and visual feedback
This commit is contained in:
@@ -261,10 +261,10 @@ int DisplayDriverGFX::dashboardTouch(int x, int y) {
|
||||
return row * cols + col;
|
||||
}
|
||||
|
||||
HoldState DisplayDriverGFX::updateHold(unsigned long holdMs) {
|
||||
HoldState DisplayDriverGFX::updateHold(const TouchEvent& evt, unsigned long holdMs) {
|
||||
HoldState state;
|
||||
|
||||
if(!_lastTouch.pressed) {
|
||||
if(!evt.pressed) {
|
||||
_isHolding = false;
|
||||
return state;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ public:
|
||||
void render(const ScreenState& state) override;
|
||||
|
||||
TouchEvent readTouch() override;
|
||||
HoldState updateHold(unsigned long holdMs) override;
|
||||
HoldState updateHold(const TouchEvent& evt, unsigned long holdMs) override;
|
||||
void drawDebugTouch(int x, int y) override;
|
||||
|
||||
int width() override;
|
||||
|
||||
Reference in New Issue
Block a user