From 443501e53270e7f68cdc44c0e9e0aa37c081c6ce Mon Sep 17 00:00:00 2001 From: Jack Li Date: Sun, 6 Jul 2025 15:01:11 -0700 Subject: [PATCH 1/2] Show Toaplan test switch as input instead of dip switch, remove default keybind --- src/mame/toaplan/toaplipt.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mame/toaplan/toaplipt.h b/src/mame/toaplan/toaplipt.h index 99ce50a1eca3c..d9d381fe69a1c 100644 --- a/src/mame/toaplan/toaplipt.h +++ b/src/mame/toaplan/toaplipt.h @@ -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_TOGGLE \ 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 From ce817bd4b2b973e7ab1697885606b0218fdad335 Mon Sep 17 00:00:00 2001 From: hap Date: Tue, 8 Jul 2025 16:16:15 +0200 Subject: [PATCH 2/2] fix merge conflict --- src/mame/toaplan/toaplipt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mame/toaplan/toaplipt.h b/src/mame/toaplan/toaplipt.h index d9d381fe69a1c..9dd924a0bd249 100644 --- a/src/mame/toaplan/toaplipt.h +++ b/src/mame/toaplan/toaplipt.h @@ -179,7 +179,7 @@ #if SHOW_TEST_AS_DIP #define TOAPLAN_TEST_SWITCH(MASK, STATE) \ - PORT_DIPNAME( MASK, MASK & STATE, "Test Switch" ) PORT_TOGGLE \ + PORT_DIPNAME( MASK, MASK & STATE, "Test Switch" ) \ PORT_DIPSETTING( MASK & STATE, DEF_STR( Off ) ) \ PORT_DIPSETTING( MASK & ~STATE, DEF_STR( On ) ) #else