From a06ab0a63811e3b2a0de18210e226040069ff428 Mon Sep 17 00:00:00 2001 From: Angelo Salese Date: Sun, 30 May 2010 22:13:29 +0000 Subject: [PATCH] Hooked up ad sticks to Rail Chase 2 [Angelo Salese] --- src/mame/drivers/model2.c | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/mame/drivers/model2.c b/src/mame/drivers/model2.c index 8531093cf57..426bdda40cb 100644 --- a/src/mame/drivers/model2.c +++ b/src/mame/drivers/model2.c @@ -1542,7 +1542,7 @@ static INPUT_PORTS_START( daytona ) PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_PLAYER(1) INPUT_PORTS_END -static INPUT_PORTS_START( srallyc) +static INPUT_PORTS_START( srallyc ) PORT_START("1c00000") PORT_BIT( 0x0000ffff, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_BIT( 0xffff0000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(_1c00000_r, NULL) @@ -1635,6 +1635,23 @@ static INPUT_PORTS_START( bel ) PORT_BIT(0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) INPUT_PORTS_END +static INPUT_PORTS_START( rchase2 ) + PORT_INCLUDE( model2 ) + + /* FIXME: don't know yet if min max values are really correct, we'll see ... */ + PORT_START("ANA0") + PORT_BIT( 0x00ff, 0x0000, IPT_AD_STICK_X ) PORT_MINMAX(0x80,0x7f) PORT_SENSITIVITY(30) PORT_KEYDELTA(20) PORT_PLAYER(2) + + PORT_START("ANA1") + PORT_BIT( 0x00ff, 0x0000, IPT_AD_STICK_X ) PORT_MINMAX(0x80,0x7f) PORT_SENSITIVITY(30) PORT_KEYDELTA(20) PORT_PLAYER(1) + + PORT_START("ANA2") + PORT_BIT( 0x00ff, 0x0000, IPT_AD_STICK_Y ) PORT_MINMAX(0x00,0xff) PORT_SENSITIVITY(30) PORT_KEYDELTA(20) PORT_PLAYER(2) + + PORT_START("ANA3") + PORT_BIT( 0x00ff, 0x0000, IPT_AD_STICK_Y ) PORT_MINMAX(0x00,0xff) PORT_SENSITIVITY(30) PORT_KEYDELTA(20) PORT_PLAYER(1) +INPUT_PORTS_END + static INTERRUPT_GEN(model2_interrupt) { switch (cpu_getiloops(device)) @@ -4726,7 +4743,7 @@ GAME( 1997, zerogunj, zerogun, model2b, model2, zerogun, ROT0, "Psikyo", "Zero GAME( 1998, dynamcopb,dynamcop, model2b, model2, genprot, ROT0, "Sega", "Dynamite Cop (Export, Model 2B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) GAME( 1998, dyndeka2b,dynamcop, model2b, model2, genprot, ROT0, "Sega", "Dynamite Deka 2 (Japan, Model 2B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) GAME( 1998, pltkids, 0, model2b, model2, pltkids, ROT0, "Psikyo", "Pilot Kids (Model 2B, Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) -GAME( 1995, rchase2, 0, model2b, model2, 0, ROT0, "Sega", "Rail Chase 2 (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) +GAME( 1995, rchase2, 0, model2b, rchase2,0, ROT0, "Sega", "Rail Chase 2 (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS ) // Model 2C-CRX (TGPx4, SCSP sound board) GAME( 1996, skisuprg, 0, model2c, model2, 0, ROT0, "Sega", "Sega Ski Super G", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )