mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Key settings: Clear with escape (#8282)
Key ESCAPE -> Cancel change Key DELETE -> Remove entry
This commit is contained in:
parent
71899e11d2
commit
ee7d357602
2 changed files with 45 additions and 52 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue