diff options
author | TheBrokenRail <17478432+TheBrokenRail@users.noreply.github.com> | 2021-09-26 12:04:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-26 18:04:09 +0200 |
commit | 3dcf9e963e3d3c5d209cd3676c2f979a58c6c1ab (patch) | |
tree | c60d824fdbd211710d51b89f60913fccc0ee9d76 /src/gui/modalMenu.h | |
parent | 9f85862b7c0d2fd6fe964699bbeabc824026e848 (diff) | |
download | minetest-3dcf9e963e3d3c5d209cd3676c2f979a58c6c1ab.tar.xz |
Touch UI support for desktop builds (#10729)
Diffstat (limited to 'src/gui/modalMenu.h')
-rw-r--r-- | src/gui/modalMenu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/modalMenu.h b/src/gui/modalMenu.h index ed0da3205..06e78f06b 100644 --- a/src/gui/modalMenu.h +++ b/src/gui/modalMenu.h @@ -75,10 +75,10 @@ protected: v2u32 m_screensize_old; float m_gui_scale; #ifdef __ANDROID__ - v2s32 m_down_pos; std::string m_jni_field_name; #endif #ifdef HAVE_TOUCHSCREENGUI + v2s32 m_down_pos; bool m_touchscreen_visible = true; #endif @@ -102,7 +102,7 @@ private: // wants to launch other menus bool m_allow_focus_removal = false; -#ifdef __ANDROID__ +#ifdef HAVE_TOUCHSCREENGUI irr_ptr<gui::IGUIElement> m_hovered; bool simulateMouseEvent(gui::IGUIElement *target, ETOUCH_INPUT_EVENT touch_event); |