diff options
author | 2016-02-21 11:48:45 +0100 | |
---|---|---|
committer | 2016-02-21 11:48:45 +0100 | |
commit | cc24a339d8c0517259084b5c178d784626ba965c (patch) | |
tree | 9868e9687b5802ae0a3733712a3bbeb3bc75c953 /src/emu/ui/ctrlmenu.h | |
parent | b5daabda5495dea5c50e17961ecfed2ea8619d76 (diff) |
Merge remote-tracking branch 'refs/remotes/mamedev/master'
Second attempt
Diffstat (limited to 'src/emu/ui/ctrlmenu.h')
-rw-r--r-- | src/emu/ui/ctrlmenu.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/emu/ui/ctrlmenu.h b/src/emu/ui/ctrlmenu.h new file mode 100644 index 00000000000..4c1325071d6 --- /dev/null +++ b/src/emu/ui/ctrlmenu.h @@ -0,0 +1,41 @@ +// license:BSD-3-Clause +// copyright-holders:Dankan1890 +/*************************************************************************** + + ui/ctrlmenu.h + + Internal UI user interface. + +***************************************************************************/ +#pragma once + +#ifndef __UI_CTRLMENU_H__ +#define __UI_CTRLMENU_H__ + +//------------------------------------------------- +// class controller mapping menu +//------------------------------------------------- + +class ui_menu_controller_mapping : public ui_menu +{ +public: + ui_menu_controller_mapping(running_machine &machine, render_container *container); + virtual ~ui_menu_controller_mapping(); + virtual void populate() override; + virtual void handle() override; + virtual void custom_render(void *selectedref, float top, float bottom, float x, float y, float x2, float y2) override; + +private: + struct ctrl_option + { + int status; + const char *description; + const char *option; + }; + + static const char *m_device_status[]; + static ctrl_option m_options[]; + int check_status(const char *status, const char *option); +}; + +#endif /* __UI_CTRLMENU_H__ */ |