summaryrefslogtreecommitdiff
path: root/src/gui/modalMenu.h
diff options
context:
space:
mode:
authorVitaliy <numzer0@yandex.ru>2021-02-07 13:48:30 +0300
committerGitHub <noreply@github.com>2021-02-07 11:48:30 +0100
commit4caf156be5baf80e6bcdb6797937ffabbe476a0f (patch)
treecd64406c6aef13a938fffcbc5c537e7102d61d7e /src/gui/modalMenu.h
parent3ac07ad34daa2e06a11f76d2fab402f411487d46 (diff)
downloadminetest-4caf156be5baf80e6bcdb6797937ffabbe476a0f.tar.gz
minetest-4caf156be5baf80e6bcdb6797937ffabbe476a0f.tar.bz2
minetest-4caf156be5baf80e6bcdb6797937ffabbe476a0f.zip
Rewrite touch event conversion (#10636)
Diffstat (limited to 'src/gui/modalMenu.h')
-rw-r--r--src/gui/modalMenu.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/modalMenu.h b/src/gui/modalMenu.h
index 1cb687f82..ed0da3205 100644
--- a/src/gui/modalMenu.h
+++ b/src/gui/modalMenu.h
@@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#pragma once
#include "irrlichttypes_extrabloated.h"
+#include "irr_ptr.h"
#include "util/string.h"
class GUIModalMenu;
@@ -100,4 +101,12 @@ private:
// This might be necessary to expose to the implementation if it
// wants to launch other menus
bool m_allow_focus_removal = false;
+
+#ifdef __ANDROID__
+ irr_ptr<gui::IGUIElement> m_hovered;
+
+ bool simulateMouseEvent(gui::IGUIElement *target, ETOUCH_INPUT_EVENT touch_event);
+ void enter(gui::IGUIElement *element);
+ void leave();
+#endif
};