From cfaef5b1cfc8ec7463a2e8aec420bfc3a434f9c1 Mon Sep 17 00:00:00 2001 From: Zughy <63455151+Zughy@users.noreply.github.com> Date: Tue, 14 Jul 2020 22:37:28 +0200 Subject: Formspecs: volume and key settings windows can now be closed by doubleclicking/tapping (#10128) Co-authored-by: Xx_Crazyminer_xX Co-authored-by: Marco <4279489-marco_a@users.noreply.gitlab.com> --- src/gui/guiFormSpecMenu.h | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/gui/guiFormSpecMenu.h') diff --git a/src/gui/guiFormSpecMenu.h b/src/gui/guiFormSpecMenu.h index 5a6b467aa..613acaa04 100644 --- a/src/gui/guiFormSpecMenu.h +++ b/src/gui/guiFormSpecMenu.h @@ -457,30 +457,8 @@ private: */ void legacySortElements(core::list::Iterator from); - /** - * check if event is part of a double click - * @param event event to evaluate - * @return true/false if a doubleclick was detected - */ - bool DoubleClickDetection(const SEvent event); - - struct clickpos - { - v2s32 pos; - s64 time; - }; - clickpos m_doubleclickdetect[2]; - int m_btn_height; gui::IGUIFont *m_font = nullptr; - - /* If true, remap a double-click (or double-tap) action to ESC. This is so - * that, for example, Android users can double-tap to close a formspec. - * - * This value can (currently) only be set by the class constructor - * and the default value for the setting is true. - */ - bool m_remap_dbl_click; }; class FormspecFormSource: public IFormSource -- cgit v1.2.3