From 073757f53e8462c7e88ac26c1133b20b14829adc Mon Sep 17 00:00:00 2001 From: auria Date: Sun, 23 Jan 2011 21:04:36 +0000 Subject: [PATCH] Fixed gamepad glitch I introduced git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7504 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/input/input_device.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/input/input_device.cpp b/src/input/input_device.cpp index 3f23b054f..a5b75fb56 100644 --- a/src/input/input_device.cpp +++ b/src/input/input_device.cpp @@ -219,10 +219,10 @@ bool GamePadDevice::processAndMapInput(Input::InputType type, const int id, cons return false; } + + // If axis did not send proper values yet, ignore it. + if (!m_axis_ok[id]) return false; } - - // If axis did not send proper values yet, ignore it. - if (!m_axis_ok[id]) return false; if (m_configuration != NULL) {