diff options
author | 2025-02-17 20:43:35 +0100 | |
---|---|---|
committer | 2025-02-17 20:43:45 +0100 | |
commit | 0b0e00a8406601831c3f4c1a40ec2acae0594764 (patch) | |
tree | b38b99c56172cfe0da2e28e0b0c9febc9ebfaff0 | |
parent | 2905f85348f75e16e98527200c4db4a6fb35161b (diff) |
swat: cherry pick 4-way joystick from https://github.com/mamedev/mame/pull/12449 [Greg Kennedy]
-rw-r--r-- | src/mame/sega/system1.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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" ) |