Fix more keyboard issues, fixes #3131
This commit is contained in:
parent
d271e27590
commit
361e03c375
src
@ -777,7 +777,7 @@ void InputManager::dispatchInput(Input::InputType type, int deviceID,
|
|||||||
Controller* controller = pk->getController();
|
Controller* controller = pk->getController();
|
||||||
if (controller != NULL) controller->action(action, abs(value));
|
if (controller != NULL) controller->action(action, abs(value));
|
||||||
}
|
}
|
||||||
else if (race_manager->isWatchingReplay())
|
else if (race_manager->isWatchingReplay() && !GUIEngine::ModalDialog::isADialogActive())
|
||||||
{
|
{
|
||||||
// Get the first ghost kart
|
// Get the first ghost kart
|
||||||
World::getWorld()->getKart(0)
|
World::getWorld()->getKart(0)
|
||||||
|
@ -43,7 +43,6 @@ GhostReplayInfoDialog::GhostReplayInfoDialog(unsigned int replay_id)
|
|||||||
(m_rd.m_filename) : m_rd.m_filename).c_str()), false);
|
(m_rd.m_filename) : m_rd.m_filename).c_str()), false);
|
||||||
|
|
||||||
m_back_widget = getWidget<IconButtonWidget>("back");
|
m_back_widget = getWidget<IconButtonWidget>("back");
|
||||||
m_back_widget->setFocusForPlayer(PLAYER_ID_GAME_MASTER);
|
|
||||||
|
|
||||||
// Non-deletable for custom (standard) replay file
|
// Non-deletable for custom (standard) replay file
|
||||||
getWidget<IconButtonWidget>("remove")->setActive(!m_rd.m_custom_replay_file);
|
getWidget<IconButtonWidget>("remove")->setActive(!m_rd.m_custom_replay_file);
|
||||||
@ -62,6 +61,8 @@ GhostReplayInfoDialog::GhostReplayInfoDialog(unsigned int replay_id)
|
|||||||
m_record_widget->setState(false);
|
m_record_widget->setState(false);
|
||||||
m_watch_widget->setState(false);
|
m_watch_widget->setState(false);
|
||||||
|
|
||||||
|
m_action_widget->setFocusForPlayer(PLAYER_ID_GAME_MASTER);
|
||||||
|
m_action_widget->select("start", PLAYER_ID_GAME_MASTER);
|
||||||
} // GhostReplayInfoDialog
|
} // GhostReplayInfoDialog
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user