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:
parent
228808f981
commit
6b65eb0217
@ -332,6 +332,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();
|
||||
|
||||
@ -427,6 +430,9 @@ void EventHandler::navigateDown(const int playerID, Input::InputType type, const
|
||||
|
||||
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();
|
||||
//std::cout << "!!! Player " << playerID << " navigating down of " << w->m_element->getID() << std::endl;
|
||||
|
Loading…
x
Reference in New Issue
Block a user