Applied other patch by Hilton Medeiros

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4937 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-03-05 19:45:16 +00:00
parent 228808f981
commit 6b65eb0217

View File

@ -331,6 +331,9 @@ void EventHandler::navigateUp(const int playerID, Input::InputType type, const b
{
//std::cout << "Naviagte up!\n";
IGUIElement *el = NULL, *first=NULL, *closest=NULL;
if (type == Input::IT_STICKBUTTON && !pressedDown)
return;
Widget* w = GUIEngine::getFocusForPlayer(playerID);
if (w != NULL) el = w->getIrrlichtElement();
@ -426,6 +429,9 @@ void EventHandler::navigateDown(const int playerID, Input::InputType type, const
//std::cout << "Naviagte down!\n";
IGUIElement *el = NULL, *first = NULL, *closest = NULL;
if (type == Input::IT_STICKBUTTON && !pressedDown)
return;
Widget* w = GUIEngine::getFocusForPlayer(playerID);
if (w != NULL) el = w->getIrrlichtElement();