diff options
author | Zeno- <kde.psych@gmail.com> | 2014-11-10 19:12:25 +1000 |
---|---|---|
committer | Zeno- <kde.psych@gmail.com> | 2014-11-10 19:12:25 +1000 |
commit | a1e9732407494edb9cef3ada45cc2781a34ed60c (patch) | |
tree | cc91215da60a6b971f92addc8b8884ec4eb97d2b /src/mainmenumanager.h | |
parent | 10a47b7feef3278792c567f5b954ea4c3712319c (diff) | |
parent | 987e565eeb80f0fe2825267de728f8a1989a051d (diff) | |
download | minetest-a1e9732407494edb9cef3ada45cc2781a34ed60c.tar.gz minetest-a1e9732407494edb9cef3ada45cc2781a34ed60c.tar.bz2 minetest-a1e9732407494edb9cef3ada45cc2781a34ed60c.zip |
Merge pull request #1825 from Zeno-/control_key_cache
Create faster key cache for main game loop (client)
Diffstat (limited to 'src/mainmenumanager.h')
-rw-r--r-- | src/mainmenumanager.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mainmenumanager.h b/src/mainmenumanager.h index 56ba40129..db8aa9e19 100644 --- a/src/mainmenumanager.h +++ b/src/mainmenumanager.h @@ -35,6 +35,8 @@ public: virtual void disconnect() = 0; virtual void changePassword() = 0; virtual void changeVolume() = 0; + + virtual void signalKeyConfigChange() = 0; }; extern gui::IGUIEnvironment* guienv; @@ -127,6 +129,7 @@ public: changevolume_requested(false), keyconfig_requested(false), shutdown_requested(false), + keyconfig_changed(false), device(a_device) { } @@ -159,12 +162,20 @@ public: keyconfig_requested = true; } + virtual void signalKeyConfigChange() + { + keyconfig_changed = true; + } + bool disconnect_requested; bool changepassword_requested; bool changevolume_requested; bool keyconfig_requested; bool shutdown_requested; + + bool keyconfig_changed; + IrrlichtDevice *device; }; |