From 54c2514148a7ebe77e5552b9ab1ae124a0b5abd2 Mon Sep 17 00:00:00 2001 From: auria Date: Sun, 31 May 2009 01:31:37 +0000 Subject: [PATCH] fixed typo in code git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3564 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/gui/options_screen.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/options_screen.cpp b/src/gui/options_screen.cpp index f3ddc616f..aa72a1ba5 100644 --- a/src/gui/options_screen.cpp +++ b/src/gui/options_screen.cpp @@ -371,6 +371,8 @@ namespace StateManager } } + #define MAX_VALUE 32768 + // ----------------------------------------------------------------------------- void gotSensedInput(Input* sensedInput) { @@ -378,7 +380,8 @@ namespace StateManager assert( devices != NULL ); const bool keyboard = sensedInput->type == Input::IT_KEYBOARD && devices->getSelectionName() == "keyboard"; - const bool gamepad = sensedInput->type == (Input::IT_STICKMOTION || sensedInput->type == Input::IT_STICKBUTTON) && + const bool gamepad = sensedInput->type == (sensedInput->type == Input::IT_STICKMOTION || + sensedInput->type == Input::IT_STICKBUTTON) && devices->getSelectionName().find("gamepad") != std::string::npos; if(!keyboard && !gamepad) return;