uimain: MT 4569 fix [O. Galibert]

This commit is contained in:
Olivier Galibert 2011-12-21 18:11:51 +00:00
parent cedca57fe3
commit 849e02dafe
2 changed files with 8 additions and 1 deletions

View File

@ -604,7 +604,7 @@ void ui_menu_input_general::populate()
input_item_data *item = (input_item_data *)m_pool_alloc(sizeof(*item));
memset(item, 0, sizeof(*item));
item->ref = entry;
if(pollingitem && pollingref == entry)
if(pollingitem && pollingref == entry && pollingseq == seqtype)
pollingitem = item;
item->seqtype = seqtype;
item->seq = input_type_seq(machine(), entry->type, entry->player, seqtype);
@ -708,6 +708,9 @@ ui_menu_input_specific::~ui_menu_input_specific()
-------------------------------------------------*/
ui_menu_input::ui_menu_input(running_machine &machine, render_container *container) : ui_menu(machine, container)
{
pollingitem = 0;
pollingref = 0;
pollingseq = SEQ_TYPE_STANDARD;
}
ui_menu_input::~ui_menu_input()
@ -820,7 +823,10 @@ void ui_menu_input::handle()
{
pollingref = NULL;
if (pollingitem != NULL)
{
pollingref = pollingitem->ref;
pollingseq = pollingitem->seqtype;
}
reset(UI_MENU_RESET_REMEMBER_POSITION);
}
}

View File

@ -123,6 +123,7 @@ protected:
protected:
const void * pollingref;
input_seq_type pollingseq;
input_item_data * pollingitem;
private: