summaryrefslogtreecommitdiff
path: root/src/gui/gui.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-09 13:23:07 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-09 14:44:09 +0300
commitc66e0863ecc24145c57261987eb8e25776c303ce (patch)
tree17bb98deebd60463cb01bad865a92b766272efed /src/gui/gui.h
parent4c90395b1b42d436545b33a855ef431f5ede6a9b (diff)
downloadmanaplus-c66e0863ecc24145c57261987eb8e25776c303ce.tar.gz
manaplus-c66e0863ecc24145c57261987eb8e25776c303ce.tar.bz2
manaplus-c66e0863ecc24145c57261987eb8e25776c303ce.tar.xz
manaplus-c66e0863ecc24145c57261987eb8e25776c303ce.zip
Add support for long mouse press event.
Enabled by default on Android.
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r--src/gui/gui.h5
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);