summaryrefslogtreecommitdiff
path: root/src/gui/guiFormSpecMenu.h
diff options
context:
space:
mode:
authorZughy <63455151+Zughy@users.noreply.github.com>2020-07-14 22:37:28 +0200
committerGitHub <noreply@github.com>2020-07-14 22:37:28 +0200
commitcfaef5b1cfc8ec7463a2e8aec420bfc3a434f9c1 (patch)
treec855483f15c175f30a5ac2d44497a87f824f7d84 /src/gui/guiFormSpecMenu.h
parent4b4513a67d9fc426d0f33798d0810a3a0594baaf (diff)
downloadminetest-cfaef5b1cfc8ec7463a2e8aec420bfc3a434f9c1.tar.gz
minetest-cfaef5b1cfc8ec7463a2e8aec420bfc3a434f9c1.tar.bz2
minetest-cfaef5b1cfc8ec7463a2e8aec420bfc3a434f9c1.zip
Formspecs: volume and key settings windows can now be closed by doubleclicking/tapping (#10128)
Co-authored-by: Xx_Crazyminer_xX <carlo.digioia@hotmail.it> Co-authored-by: Marco <4279489-marco_a@users.noreply.gitlab.com>
Diffstat (limited to 'src/gui/guiFormSpecMenu.h')
-rw-r--r--src/gui/guiFormSpecMenu.h22
1 files changed, 0 insertions, 22 deletions
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<IGUIElement *>::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