diff options
| author | 2022-09-19 10:11:15 -0400 | |
|---|---|---|
| committer | 2022-09-19 16:11:15 +0200 | |
| commit | 4d3eb6c647b4e021e8e4b73c755fd2b4438f5432 (patch) | |
| tree | f645e04f4a2f7f30af9428b413035de605869d3e /src | |
| parent | 09c8809fe3c07d438de0dba5e96a9f348b559604 (diff) | |
sega/megadriv_rad.cpp: add debug button option for dgunl3227 (#10350)
* sega/megadriv_rad.cpp: add debug button option for dgunl3227
* make button C explicitly unused when disabled
Diffstat (limited to 'src')
| -rw-r--r-- | src/mame/sega/megadriv_rad.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/mame/sega/megadriv_rad.cpp b/src/mame/sega/megadriv_rad.cpp index 42e14b90572..466579f86ec 100644 --- a/src/mame/sega/megadriv_rad.cpp +++ b/src/mame/sega/megadriv_rad.cpp @@ -343,9 +343,16 @@ INPUT_PORTS_END static INPUT_PORTS_START( megadriv_dgunl_1player ) PORT_INCLUDE( megadriv_radica_3button ) - PORT_MODIFY("PAD1") // the unit only has 2 buttons, A and C, strings are changed to remove references to C, even if behavior in Pac-Mania still exists and differs between them - PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNUSED ) // disable 'C' - //PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNUSED ) // disable 'A' + // the unit only has 2 buttons, A and B, strings are changed to remove references to C, even if behavior in Pac-Mania still exists and differs between them + // however, Pac-Man still has a test mode which requires holding A+C on startup + PORT_START("DEBUG") + PORT_CONFNAME( 0x01, 0x00, "Enable Button C" ) + PORT_CONFSETTING( 0x00, DEF_STR( No ) ) + PORT_CONFSETTING( 0x01, DEF_STR( Yes ) ) + + PORT_MODIFY("PAD1") + PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CONDITION("DEBUG", 0x01, EQUALS, 0x00) + PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) PORT_CONDITION("DEBUG", 0x01, EQUALS, 0x01) PORT_MODIFY("PAD2") PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED ) |
