summaryrefslogtreecommitdiff
path: root/src/game.h
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2016-05-14 16:25:57 +0200
committerest31 <MTest31@outlook.com>2016-05-26 20:33:33 +0200
commitfa6b21a15b415cd82dce6896b94a5341b7dd76f0 (patch)
tree1fc68b1ebb2ce52c81b33e816b0f8f8f827d47a7 /src/game.h
parentef100f12a1346f7bfd2a05dc606cb22e97179c02 (diff)
downloadminetest-fa6b21a15b415cd82dce6896b94a5341b7dd76f0.tar.gz
minetest-fa6b21a15b415cd82dce6896b94a5341b7dd76f0.tar.bz2
minetest-fa6b21a15b415cd82dce6896b94a5341b7dd76f0.zip
Tell irrlicht if we handle a key or not.
We can remove the function in MtNativeActivity now as it serves precisely that purpose: to tell irrlicht that we handled the esc key. TODO for later: * Perhaps try to find a more performant container than KeyList
Diffstat (limited to 'src/game.h')
-rw-r--r--src/game.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game.h b/src/game.h
index e1f4e9346..5465ecdc6 100644
--- a/src/game.h
+++ b/src/game.h
@@ -110,6 +110,9 @@ public:
virtual bool isKeyDown(const KeyPress &keyCode) = 0;
virtual bool wasKeyDown(const KeyPress &keyCode) = 0;
+ virtual void listenForKey(const KeyPress &keyCode) {}
+ virtual void dontListenForKeys() {}
+
virtual v2s32 getMousePos() = 0;
virtual void setMousePos(s32 x, s32 y) = 0;