mirror of
https://github.com/holub/mame
synced 2025-04-25 17:56:43 +03:00
uimain: MT 4569 fix [O. Galibert]
This commit is contained in:
parent
cedca57fe3
commit
849e02dafe
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -123,6 +123,7 @@ protected:
|
||||
|
||||
protected:
|
||||
const void * pollingref;
|
||||
input_seq_type pollingseq;
|
||||
input_item_data * pollingitem;
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user