Allow to change player name in kart selection with keyboard or gamepad.
Currently spinner widgets use select button instead of left/right buttons to change values, so that we can't handle player confirmation when spinner is hovered.
This commit is contained in:
parent
060855c710
commit
0c57d55a9d
@ -743,8 +743,9 @@ const std::string& PlayerKartWidget::getKartInternalName() const
|
||||
/** \brief Event callback from ISpinnerConfirmListener */
|
||||
EventPropagation PlayerKartWidget::onSpinnerConfirmed()
|
||||
{
|
||||
KartSelectionScreen::getRunningInstance()->playerConfirm(m_player_id);
|
||||
return EVENT_BLOCK;
|
||||
//KartSelectionScreen::getRunningInstance()->playerConfirm(m_player_id);
|
||||
//return EVENT_BLOCK;
|
||||
return EVENT_LET;
|
||||
} // onSpinnerConfirmed
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
@ -559,8 +559,8 @@ bool KartSelectionScreen::joinPlayer(InputDevice* device, PlayerProfile* p)
|
||||
// we need to select something for them
|
||||
w->setSelection(new_player_id, new_player_id, true);
|
||||
|
||||
newPlayerWidget->m_player_ident_spinner
|
||||
->setFocusForPlayer(new_player_id);
|
||||
//newPlayerWidget->m_player_ident_spinner
|
||||
// ->setFocusForPlayer(new_player_id);
|
||||
|
||||
if (!m_multiplayer)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user