From 3e4fb49d5e3d2362d32552b20e50ff865a757114 Mon Sep 17 00:00:00 2001 From: AJR Date: Fri, 24 May 2019 09:11:58 -0400 Subject: Improve sorting of items for machine input menu. Inputs of the same type are sorted by name, and keyboard keys are sorted by their assigned character codes (if any). --- src/frontend/mame/ui/inputmap.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/frontend/mame/ui/inputmap.h') diff --git a/src/frontend/mame/ui/inputmap.h b/src/frontend/mame/ui/inputmap.h index d63ecbd3d84..eaa0eaa76f1 100644 --- a/src/frontend/mame/ui/inputmap.h +++ b/src/frontend/mame/ui/inputmap.h @@ -53,12 +53,12 @@ protected: const input_seq * defseq; /* pointer to the default sequence */ const char * name; /* pointer to the base name of the item */ const char * owner_name; /* pointer to the name of the owner of the item */ - uint32_t sortorder; /* sorting information */ + ioport_group group; /* group type */ uint8_t type; /* type of port */ bool is_optional; /* true if this input is considered optional */ }; - void populate_and_sort(struct input_item_data *itemlist); + void populate_sorted(std::vector &&itemarray); void toggle_none_default(input_seq &selected_seq, input_seq &original_seq, const input_seq &selected_defseq); const void * pollingref; @@ -66,7 +66,7 @@ protected: input_item_data * pollingitem; private: - uint32_t last_sortorder; + input_item_data * lastitem; bool record_next; input_seq starting_seq; -- cgit v1.2.3