Skip to content
Open
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
36 changes: 16 additions & 20 deletions src/mame/sega/megatech.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,8 @@ static INPUT_PORTS_START( megatech ) /* Genesis Input Ports */
PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x0008, DEF_STR( Off ) )
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x0010, DEF_STR( Off ) )
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x0020, DEF_STR( Off ) )
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_DOOR) PORT_NAME("Door 1") PORT_CODE(KEYCODE_W) PORT_TOGGLE
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_DOOR) PORT_NAME("Door 2") PORT_CODE(KEYCODE_E) PORT_TOGGLE
PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x0040, DEF_STR( Off ) )
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
Expand All @@ -232,28 +228,28 @@ static INPUT_PORTS_START( megatech ) /* Genesis Input Ports */
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN4 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_NAME("Service coin") PORT_CODE(KEYCODE_9)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_NAME("Service Coin") PORT_CODE(KEYCODE_9)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE3 ) PORT_NAME("Enter") PORT_CODE(KEYCODE_MINUS)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's so special about this driver that warrants a IPT_SERVICE remapping?

PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 )

PORT_START("BIOS_DSW0")
PORT_DIPNAME( 0x02, 0x02, "Coin slot 3" )
PORT_DIPNAME( 0x02, 0x02, "Coin Slot 3" )
PORT_DIPSETTING( 0x00, "Inhibit" )
PORT_DIPSETTING( 0x02, "Accept" )
PORT_DIPNAME( 0x01, 0x01, "Coin slot 4" )
PORT_DIPNAME( 0x01, 0x01, "Coin Slot 4" )
PORT_DIPSETTING( 0x00, "Inhibit" )
PORT_DIPSETTING( 0x01, "Accept" )
PORT_DIPNAME( 0x1c, 0x1c, "Coin slot 3/4 value" )
PORT_DIPNAME( 0x1c, 0x1c, "Coin Slot 3/4 Value" )
PORT_DIPSETTING( 0x1c, DEF_STR( 1C_1C ) )
PORT_DIPSETTING( 0x18, DEF_STR( 1C_2C ) )
PORT_DIPSETTING( 0x14, DEF_STR( 1C_3C ) )
PORT_DIPSETTING( 0x10, DEF_STR( 1C_4C ) )
PORT_DIPSETTING( 0x0c, DEF_STR( 1C_5C ) )
PORT_DIPSETTING( 0x08, DEF_STR( 1C_6C ) )
PORT_DIPSETTING( 0x04, DEF_STR( 1C_8C ) )
PORT_DIPSETTING( 0x00, "1 Coin/10 credits" )
PORT_DIPNAME( 0xe0, 0x60, "Coin slot 2 value" )
PORT_DIPSETTING( 0x00, "1 Coin/10 Credits" )
PORT_DIPNAME( 0xe0, 0x60, "Coin Slot 2 Value" )
PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) )
PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) )
PORT_DIPSETTING( 0x60, DEF_STR( 1C_2C ) )
Expand All @@ -264,7 +260,7 @@ static INPUT_PORTS_START( megatech ) /* Genesis Input Ports */
PORT_DIPSETTING( 0x00, "Inhibit" )

PORT_START("BIOS_DSW1")
PORT_DIPNAME( 0x0f, 0x01, "Coin Slot 1 value" )
PORT_DIPNAME( 0x0f, 0x01, "Coin Slot 1 Value" )
PORT_DIPSETTING( 0x00, "Inhibit" )
PORT_DIPSETTING( 0x01, DEF_STR( 1C_1C ) )
PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) )
Expand All @@ -275,13 +271,13 @@ static INPUT_PORTS_START( megatech ) /* Genesis Input Ports */
PORT_DIPSETTING( 0x07, DEF_STR( 1C_7C ) )
PORT_DIPSETTING( 0x08, DEF_STR( 1C_8C ) )
PORT_DIPSETTING( 0x09, DEF_STR( 1C_9C ) )
PORT_DIPSETTING( 0x0a, "1 coin/10 credits" )
PORT_DIPSETTING( 0x0b, "1 coin/11 credits" )
PORT_DIPSETTING( 0x0c, "1 coin/12 credits" )
PORT_DIPSETTING( 0x0d, "1 coin/13 credits" )
PORT_DIPSETTING( 0x0e, "1 coin/14 credits" )
PORT_DIPSETTING( 0x0f, "1 coin/15 credits" )
PORT_DIPNAME( 0xf0, 0xa0, "Time per credit" )
PORT_DIPSETTING( 0x0a, DEF_STR( 1C_10C ) )
PORT_DIPSETTING( 0x0b, "1 Coin/11 Credits" )
PORT_DIPSETTING( 0x0c, "1 Coin/12 Credits" )
PORT_DIPSETTING( 0x0d, "1 Coin/13 Credits" )
PORT_DIPSETTING( 0x0e, "1 Coin/14 Credits" )
PORT_DIPSETTING( 0x0f, "1 Coin/15 Credits" )
PORT_DIPNAME( 0xf0, 0xa0, "Time Per Credit" )
PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )
PORT_DIPSETTING( 0x10, "7:30" )
PORT_DIPSETTING( 0x20, "7:00" )
Expand Down
Loading