Fixed left/right ribbon arrows
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5414 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -480,8 +480,6 @@ EventPropagation EventHandler::onGUIEvent(const SEvent& event)
|
||||
Widget* w = GUIEngine::getWidget(id);
|
||||
if (w == NULL) break;
|
||||
|
||||
if (!w->m_focusable) return GUIEngine::EVENT_BLOCK;
|
||||
|
||||
// These events are only triggered by keyboard/mouse (or so I hope...)
|
||||
const int playerID = input_manager->getPlayerKeyboardID();
|
||||
if (input_manager->masterPlayerOnly() && playerID != PLAYER_ID_GAME_MASTER) break;
|
||||
|
||||
@@ -504,7 +504,7 @@ EventPropagation DynamicRibbonWidget::leftPressed(const int playerID)
|
||||
EventPropagation DynamicRibbonWidget::transmitEvent(Widget* w, std::string& originator, const int playerID)
|
||||
{
|
||||
if (m_deactivated) return EVENT_LET;
|
||||
|
||||
|
||||
if (originator=="left")
|
||||
{
|
||||
scroll(-1);
|
||||
|
||||
Reference in New Issue
Block a user