summaryrefslogtreecommitdiff
path: root/src/guiInventoryMenu.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-05-14 15:43:26 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-05-14 15:43:26 +0300
commit974c5cc08cc4d9e77de44b3667d5945a5cb3c496 (patch)
treebb8db1b1f4e078454f509c18a99be74958da71be /src/guiInventoryMenu.cpp
parent0674db4a6b687a73637844fa354d2ac662e42820 (diff)
downloadminetest-974c5cc08cc4d9e77de44b3667d5945a5cb3c496.tar.gz
minetest-974c5cc08cc4d9e77de44b3667d5945a5cb3c496.tar.bz2
minetest-974c5cc08cc4d9e77de44b3667d5945a5cb3c496.zip
Added key configuration in the configuration file.
Diffstat (limited to 'src/guiInventoryMenu.cpp')
-rw-r--r--src/guiInventoryMenu.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/guiInventoryMenu.cpp b/src/guiInventoryMenu.cpp
index ec5328dcc..a4ba472f8 100644
--- a/src/guiInventoryMenu.cpp
+++ b/src/guiInventoryMenu.cpp
@@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "guiInventoryMenu.h"
#include "constants.h"
+#include "keycode.h"
void drawInventoryItem(video::IVideoDriver *driver,
gui::IGUIFont *font,
@@ -293,7 +294,7 @@ bool GUIInventoryMenu::OnEvent(const SEvent& event)
quitMenu();
return true;
}
- if(event.KeyInput.Key==KEY_KEY_I && event.KeyInput.PressedDown)
+ if(event.KeyInput.Key==getKeySetting("keymap_inventory") && event.KeyInput.PressedDown)
{
quitMenu();
return true;