diff options
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r-- | src/gui/gui.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h index 4536ee553..f7c913752 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -302,6 +302,11 @@ class Gui final */ void removeGlobalKeyListener(KeyListener *const keyListener); + bool isLongPress() + { return getMousePressLength() > 250; } + + int getMousePressLength(); + protected: void handleMouseMoved(const MouseInput &mouseInput); |