summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/info.h
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-01-02 21:39:49 -0500
committer AJR <ajrhacker@users.noreply.github.com>2017-01-02 21:39:49 -0500
commite624a3cd386cbcfc7235bdd680f0d00d15dd36f6 (patch)
tree8cb285d66bb0ea70f6079efe948510ec893f7ae2 /src/frontend/mame/ui/info.h
parent2b13832d363cb6573b2225332c2d65c6c7e655bf (diff)
Service mode DIP switch adjustments
- Changed how input sequences are assigned to service mode DIP switches. The frontend now assigns them the default sequence for the non-toggle service mode/test switch (not necessarily the F2 key, the previously hardcoded default) unless the machine happens to have one of those as well (as is somewhat common with gambling games). - All DIP and configuration switches are automatically defined as toggle fields to make assigning input codes to them easier.
Diffstat (limited to 'src/frontend/mame/ui/info.h')
-rw-r--r--src/frontend/mame/ui/info.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/frontend/mame/ui/info.h b/src/frontend/mame/ui/info.h
index 21d920e4131..b31726ba27f 100644
--- a/src/frontend/mame/ui/info.h
+++ b/src/frontend/mame/ui/info.h
@@ -29,6 +29,9 @@ public:
bool has_dips() const { return m_has_dips; }
bool has_bioses() const { return m_has_bioses; }
bool has_keyboard() const { return m_has_keyboard; }
+ bool has_test_switch() const { return m_has_test_switch; }
+
+ ioport_field *find_dipname(const char *name) const;
// text generators
std::string warnings_string();
@@ -46,6 +49,7 @@ private:
bool m_has_dips;
bool m_has_bioses;
bool m_has_keyboard;
+ bool m_has_test_switch;
};
class menu_game_info : public menu