diff options
Diffstat (limited to 'src/frontend/mame/ui/swlist.h')
-rw-r--r-- | src/frontend/mame/ui/swlist.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/frontend/mame/ui/swlist.h b/src/frontend/mame/ui/swlist.h index 36e5d3c6eaf..891d81e054b 100644 --- a/src/frontend/mame/ui/swlist.h +++ b/src/frontend/mame/ui/swlist.h @@ -43,8 +43,8 @@ private: }; using entry_list = std::list<software_part_menu_entry>; - virtual void populate(float &customtop, float &custombottom) override; - virtual void handle(event const *ev) override; + virtual void populate() override; + virtual bool handle(event const *ev) override; // variables entry_list m_entries; @@ -65,7 +65,7 @@ public: virtual ~menu_software_list() override; protected: - virtual bool custom_ui_cancel() override { return !m_search.empty(); } + virtual bool custom_ui_back() override { return !m_search.empty(); } private: struct entry_info @@ -88,11 +88,12 @@ private: std::string m_search; bool m_ordered_by_shortname; - virtual void populate(float &customtop, float &custombottom) override; - virtual void handle(event const *ev) override; + virtual void populate() override; + virtual bool handle(event const *ev) override; // functions void append_software_entry(const software_info &swinfo); + void update_search(void *selectedref); }; @@ -103,8 +104,8 @@ class menu_software : public menu public: menu_software(mame_ui_manager &mui, render_container &container, const char *interface, software_list_device **result); virtual ~menu_software() override; - virtual void populate(float &customtop, float &custombottom) override; - virtual void handle(event const *ev) override; + virtual void populate() override; + virtual bool handle(event const *ev) override; private: const char * m_interface; |