Skip to content

Show Toaplan test switch as input instead of dip switch, remove default keybind #13916

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/mame/toaplan/toaplipt.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,14 @@
Set to 0 if you want to see the Test switch as a standard input.
Set to 1 if you want to see the Test switch as a fake Dip Switch */

#define SHOW_TEST_AS_DIP 1
#define SHOW_TEST_AS_DIP 0

#if SHOW_TEST_AS_DIP
#define TOAPLAN_TEST_SWITCH(MASK, STATE) \
PORT_DIPNAME( MASK, MASK & STATE, "Test Switch" ) PORT_CODE(KEYCODE_F1) PORT_TOGGLE \
PORT_DIPNAME( MASK, MASK & STATE, "Test Switch" ) \
PORT_DIPSETTING( MASK & STATE, DEF_STR( Off ) ) \
PORT_DIPSETTING( MASK & ~STATE, DEF_STR( On ) )
#else
#define TOAPLAN_TEST_SWITCH(MASK, STATE) \
PORT_BIT( MASK, MASK & STATE, IPT_OTHER ) PORT_NAME("Test Switch") PORT_CODE(KEYCODE_F1)
PORT_BIT( MASK, MASK & STATE, IPT_OTHER ) PORT_NAME("Test Switch")
#endif
Loading