summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/inputmap.h
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2019-05-24 09:11:58 -0400
committer AJR <ajrhacker@users.noreply.github.com>2019-05-24 09:20:32 -0400
commit3e4fb49d5e3d2362d32552b20e50ff865a757114 (patch)
tree4cb2c7e86593f30800832119090ee2167e85a98c /src/frontend/mame/ui/inputmap.h
parent6c42709c107fe5f0bc74efd426ec7ae2e55560dc (diff)
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).
Diffstat (limited to 'src/frontend/mame/ui/inputmap.h')
-rw-r--r--src/frontend/mame/ui/inputmap.h6
1 files changed, 3 insertions, 3 deletions
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<input_item_data *> &&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;