diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2020-02-14 20:36:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-14 20:36:58 +0100 |
commit | ee7d35760242824fd6b00a6ab1d9a2e6e5873d2c (patch) | |
tree | a1e58ea9f982623b4be67d925392b4886707ab5a /src/gui/guiKeyChangeMenu.h | |
parent | 71899e11d2cf4674eb8b543905cf4f2df8a8339c (diff) | |
download | minetest-ee7d35760242824fd6b00a6ab1d9a2e6e5873d2c.tar.gz minetest-ee7d35760242824fd6b00a6ab1d9a2e6e5873d2c.tar.bz2 minetest-ee7d35760242824fd6b00a6ab1d9a2e6e5873d2c.zip |
Key settings: Clear with escape (#8282)
Key ESCAPE -> Cancel change
Key DELETE -> Remove entry
Diffstat (limited to 'src/gui/guiKeyChangeMenu.h')
-rw-r--r-- | src/gui/guiKeyChangeMenu.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/guiKeyChangeMenu.h b/src/gui/guiKeyChangeMenu.h index 0aaa05e18..528827fd9 100644 --- a/src/gui/guiKeyChangeMenu.h +++ b/src/gui/guiKeyChangeMenu.h @@ -70,9 +70,8 @@ private: void add_key(int id, const wchar_t *button_name, const std::string &setting_name); bool shift_down = false; - s32 activeKey = -1; - std::vector<KeyPress> key_used; + key_setting *active_key = nullptr; gui::IGUIStaticText *key_used_text = nullptr; std::vector<key_setting *> key_settings; }; |