From 0b0e00a8406601831c3f4c1a40ec2acae0594764 Mon Sep 17 00:00:00 2001 From: hap Date: Mon, 17 Feb 2025 20:43:35 +0100 Subject: swat: cherry pick 4-way joystick from https://github.com/mamedev/mame/pull/12449 [Greg Kennedy] --- src/mame/sega/system1.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/mame/sega/system1.cpp b/src/mame/sega/system1.cpp index 577f5c20e70..d5134eba306 100644 --- a/src/mame/sega/system1.cpp +++ b/src/mame/sega/system1.cpp @@ -1103,6 +1103,18 @@ INPUT_PORTS_END static INPUT_PORTS_START( swat ) PORT_INCLUDE( system1_generic ) + PORT_MODIFY("P1") + PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY + PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY + + PORT_MODIFY("P2") + PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL + PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL + PORT_MODIFY("SWB") PORT_DIPNAME( 0x06, 0x06, DEF_STR( Lives ) ) PORT_DIPLOCATION("SWB:2,3") PORT_DIPSETTING( 0x06, "3" ) -- cgit v1.2.3-70-g09d2