From cce564d3f219bca315e2456c7b3b34d340ff07c6 Mon Sep 17 00:00:00 2001 From: Scott Stone Date: Wed, 13 Jul 2011 17:11:44 +0000 Subject: [PATCH] balsente.c - A number of fixes and improvements. gghost - DIP Location fixes. gimeabrk - Added 2nd Player trackball, button and a 2 player start button to complete Cocktail support. Note: When mode is Cocktail, normal player 1 controls becomes player 2's. Fixes MT Bug#00460. hattrick - Player 1 (Blue) Control re-addition. Left player could not be controlled correctly. rescraid - Fixed control orientation to match that of an actual control panel (steering = left stick, shooting = right stick). stompin - Dropped redundant left/right joystick controls. toggle - Default controls changed to a normal joystick, rather then the left-side of a two-joystick setup. --- src/mame/drivers/balsente.c | 59 +++++++++++++++++++++---------------- 1 file changed, 33 insertions(+), 26 deletions(-) diff --git a/src/mame/drivers/balsente.c b/src/mame/drivers/balsente.c index 8201352a3c8..81e828a3ce1 100644 --- a/src/mame/drivers/balsente.c +++ b/src/mame/drivers/balsente.c @@ -438,7 +438,7 @@ static INPUT_PORTS_START( gghost ) PORT_MODIFY("SWH") BALSENTE_PLAYERS_PER_COIN - PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "H1:8" ) + PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "H1:7" ) PORT_MODIFY("SWG") PORT_DIPNAME( 0x07, 0x05, "Game Duration" ) PORT_DIPLOCATION("G1:1,2,3") @@ -450,10 +450,10 @@ static INPUT_PORTS_START( gghost ) PORT_DIPSETTING( 0x03, "Timed, 1:30" ) PORT_DIPSETTING( 0x05, "Timed, 2:00" ) PORT_DIPSETTING( 0x07, "Timed, 2:30" ) - PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "G1:5" ) - PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "G1:4" ) - PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "G1:3" ) - PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "G1:2" ) + PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "G1:4" ) + PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "G1:5" ) + PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "G1:6" ) + PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "G1:7" ) PORT_MODIFY("IN0") PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED ) @@ -504,6 +504,10 @@ static INPUT_PORTS_START( hattrick ) PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "G1:7" ) PORT_MODIFY("IN0") + PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) + PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) + PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) + PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) @@ -711,21 +715,26 @@ static INPUT_PORTS_START( gimeabrk ) PORT_DIPSETTING( 0x40, "Keep Top 5" ) PORT_DIPSETTING( 0x00, "Keep All" ) + PORT_MODIFY("IN0") + PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL + PORT_MODIFY("IN1") - PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_BIT( 0x30, IP_ACTIVE_LOW, IPT_UNUSED ) - /* Player 1 Trackball */ + /* Player 1 Trackball, Cocktail acts as Player 2*/ PORT_MODIFY("AN0") - PORT_BIT( 0xff, 0, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_RESET PORT_PLAYER(1) - + PORT_BIT( 0xff, 0, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_RESET PORT_PLAYER(1) PORT_MODIFY("AN1") PORT_BIT( 0xff, 0, IPT_TRACKBALL_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_RESET PORT_REVERSE PORT_PLAYER(1) + /* Player 2 Trackball, Cocktail acts as Player 1 */ + PORT_MODIFY("AN2") + PORT_BIT( 0xff, 0, IPT_TRACKBALL_Y ) PORT_COCKTAIL PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_RESET PORT_PLAYER(2) PORT_MODIFY("AN3") - UNUSED_ANALOG + PORT_BIT( 0xff, 0, IPT_TRACKBALL_X ) PORT_COCKTAIL PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_RESET PORT_REVERSE PORT_PLAYER(2) INPUT_PORTS_END @@ -796,6 +805,10 @@ static INPUT_PORTS_START( toggle ) PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "G1:7" ) PORT_MODIFY("IN0") + PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) + PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) + PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) + PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) @@ -995,16 +1008,10 @@ static INPUT_PORTS_START( stompin ) PORT_DIPSETTING( 0x80, DEF_STR( None ) ) PORT_MODIFY("IN0") - PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_PLAYER(1) - PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_PLAYER(1) - PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_RIGHT ) PORT_PLAYER(1) - PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_LEFT ) PORT_PLAYER(1) + PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_MODIFY("IN1") - PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_PLAYER(1) - PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_PLAYER(1) - PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_PLAYER(1) - PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_PLAYER(1) + PORT_BIT( 0x3c, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_MODIFY("AN0") PORT_BIT( 0x1f, IP_ACTIVE_LOW, IPT_UNUSED ) @@ -1101,19 +1108,19 @@ static INPUT_PORTS_START( rescraid ) PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) PORT_MODIFY("IN0") - PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_PLAYER(1) - PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_PLAYER(1) - PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_RIGHT ) PORT_PLAYER(1) - PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_LEFT ) PORT_PLAYER(1) + PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_PLAYER(1) + PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_PLAYER(1) + PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_PLAYER(1) + PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_PLAYER(1) PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_MODIFY("IN1") PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) - PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_PLAYER(1) - PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_PLAYER(1) - PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_PLAYER(1) - PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_PLAYER(1) + PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_PLAYER(1) + PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_PLAYER(1) + PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_RIGHT ) PORT_PLAYER(1) + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_LEFT ) PORT_PLAYER(1) PORT_MODIFY("AN3") UNUSED_ANALOG