From 974c5cc08cc4d9e77de44b3667d5945a5cb3c496 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 14 May 2011 15:43:26 +0300 Subject: Added key configuration in the configuration file. --- src/guiInventoryMenu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/guiInventoryMenu.cpp') 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; -- cgit v1.2.3