From 3e431d6895b8b87932ddb2d742fd23b2719bc14c Mon Sep 17 00:00:00 2001 From: auria Date: Wed, 7 Dec 2011 17:06:32 +0000 Subject: [PATCH] Don't register a keypress when a gamepad button is released in the menus git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10368 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/input/input_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/input_device.cpp b/src/input/input_device.cpp index 6e4c2fd39..7d7b6d1c8 100644 --- a/src/input/input_device.cpp +++ b/src/input/input_device.cpp @@ -246,7 +246,7 @@ bool GamePadDevice::processAndMapInput(Input::InputType type, const int id, { success = m_configuration->getGameAction(type, id, value, action); } - else + else if (value > Input::MAX_VALUE/2) { // bindings can only be accessed in game and menu modes assert(mode == InputManager::MENU);