summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/inputmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/ui/inputmap.h')
-rw-r--r--src/frontend/mame/ui/inputmap.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/frontend/mame/ui/inputmap.h b/src/frontend/mame/ui/inputmap.h
index d0bb44fd7e0..4c6064f037b 100644
--- a/src/frontend/mame/ui/inputmap.h
+++ b/src/frontend/mame/ui/inputmap.h
@@ -47,7 +47,7 @@ protected:
// internal input menu item data
struct input_item_data
{
- const void * ref = nullptr; // reference to type description for global inputs or field for game inputs
+ void * ref = nullptr; // reference to type description for global inputs or field for game inputs
input_seq_type seqtype = SEQ_TYPE_INVALID; // sequence type
input_seq seq; // copy of the live sequence
const input_seq * defseq = nullptr; // pointer to the default sequence
@@ -60,7 +60,7 @@ protected:
using data_vector = std::vector<input_item_data>;
menu_input(mame_ui_manager &mui, render_container &container);
- void populate_sorted();
+ void populate_sorted(float &customtop, float &custombottom);
void toggle_none_default(input_seq &selected_seq, input_seq &original_seq, const input_seq &selected_defseq);
data_vector data;
@@ -71,8 +71,9 @@ private:
bool record_next;
input_seq starting_seq;
+ virtual void custom_render(void *selectedref, float top, float bottom, float x1, float y1, float x2, float y2) override;
virtual void handle() override;
- virtual void update_input(struct input_item_data *seqchangeditem) = 0;
+ virtual void update_input(input_item_data &seqchangeditem) = 0;
};
class menu_input_general : public menu_input
@@ -83,7 +84,7 @@ public:
private:
virtual void populate(float &customtop, float &custombottom) override;
- virtual void update_input(struct input_item_data *seqchangeditem) override;
+ virtual void update_input(input_item_data &seqchangeditem) override;
const int group;
};
@@ -96,7 +97,7 @@ public:
private:
virtual void populate(float &customtop, float &custombottom) override;
- virtual void update_input(struct input_item_data *seqchangeditem) override;
+ virtual void update_input(input_item_data &seqchangeditem) override;
};
} // namespace ui