Avoid skipping soccer setup screen when using gamepad

This commit is contained in:
Deve 2018-06-07 23:17:47 +02:00
parent 4efafe5b2f
commit 4db01b3c24

View File

@ -305,6 +305,12 @@ GUIEngine::EventPropagation SoccerSetupScreen::filterActions(PlayerAction action
{
if(m_schedule_continue)
return EVENT_BLOCK;
const bool pressed_down = value > Input::MAX_VALUE*2/3;
if (!pressed_down)
return EVENT_BLOCK;
ButtonWidget* bt_continue = getWidget<ButtonWidget>("continue");
BubbleWidget* bubble = getWidget<BubbleWidget>("lblLeftRight");