diff options
author | Craig Robbins <kde.psych@gmail.com> | 2015-03-14 19:55:35 +1000 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2015-03-14 23:41:42 +1000 |
commit | de6d5ce2cd68cf43ded6f739e58af7de4ef5e28f (patch) | |
tree | 5d07dfb3a093e7102cb28c3148e768b23cdbc47c /src/guiFormSpecMenu.h | |
parent | 0e93eefb8f0b6168666821c3951810b5298cefe2 (diff) | |
download | minetest-de6d5ce2cd68cf43ded6f739e58af7de4ef5e28f.tar.gz minetest-de6d5ce2cd68cf43ded6f739e58af7de4ef5e28f.tar.bz2 minetest-de6d5ce2cd68cf43ded6f739e58af7de4ef5e28f.zip |
Disable double-click -> ESC translation for main menu
Diffstat (limited to 'src/guiFormSpecMenu.h')
-rw-r--r-- | src/guiFormSpecMenu.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/guiFormSpecMenu.h b/src/guiFormSpecMenu.h index 2074fb780..73dc7af62 100644 --- a/src/guiFormSpecMenu.h +++ b/src/guiFormSpecMenu.h @@ -210,8 +210,8 @@ public: ISimpleTextureSource *tsrc, IFormSource* fs_src, TextDest* txt_dst, - Client* client - ); + Client* client, + bool remap_dbl_click = true); ~GUIFormSpecMenu(); @@ -436,6 +436,14 @@ private: std::wstring m_JavaDialogFieldName; #endif + /* 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 |