From 65e3a0f639423d7d639b8d5a065670d0f60e6b81 Mon Sep 17 00:00:00 2001 From: yaw-man Date: Sat, 13 Aug 2022 12:41:24 -0300 Subject: [PATCH] Idle callbacks --- src/yaw-tab/ui.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/yaw-tab/ui.cpp b/src/yaw-tab/ui.cpp index 7b1d5d6..e3222f3 100644 --- a/src/yaw-tab/ui.cpp +++ b/src/yaw-tab/ui.cpp @@ -79,6 +79,19 @@ protected: repaint(); } + void uiIdle() override + { + getTabletData(); + repaint(); + } + + bool onMouse(const MouseEvent& ev) override + { + getTabletData(); + repaint(); + return false; //Allow event to propagate. + } + void onNanoDisplay() override {