From 90a7af6166a24e4eff4a1cc8c522588b8647b4f1 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Sun, 23 Mar 2008 13:50:41 +0000 Subject: [PATCH] From Derrick Renaud: In drivers\seta.c, the zombraid gun input ports should be changed as per the attached text file. The current crosshair settings work only with the default power-on settings. The updated code works with calibrated settings. --- src/mame/drivers/seta.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/mame/drivers/seta.c b/src/mame/drivers/seta.c index 4da180c509a..1aade258dee 100644 --- a/src/mame/drivers/seta.c +++ b/src/mame/drivers/seta.c @@ -4154,16 +4154,19 @@ static INPUT_PORTS_START( zombraid ) PORT_DIPSETTING( 0x0000, DEF_STR( Yes ) ) PORT_DIPUNUSED_DIPLOC( 0x8000, 0x8000, "SW1:8" ) /* Listed as "Unused" */ - /* Gun on screen left=0xc0, right=0x40, top=0x48, bottom=0xa8 */ - PORT_START_TAG("IN5") /* Player 1 Gun X ($f00003) */ - PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, -256.0/(256 - 0x40 - 0x40), -127.0/256, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_REVERSE PORT_PLAYER(1) - PORT_START_TAG("IN6") /* Player 1 Gun Y ($f00003) */ - PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 256.0/(256 - 0x48 - 0x58), -193.0/256, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_PLAYER(1) + /* The gun calibration defaults to: left=0xc0, right=0x40, top=0x48, bottom=0xa8 */ + /* The user calibrated values are lost each time MAME starts, so the gun always needs to be re-calibrated. */ + /* Either NVRAM or battery backed up RAM is not emulated. */ + /* For now it is best to just use a Save State after calibration to remember the setting. */ + PORT_START_TAG("IN5") /* Player 1 Gun X ($f00003) */ + PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, -1, 0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_REVERSE PORT_PLAYER(1) + PORT_START_TAG("IN6") /* Player 1 Gun Y ($f00003) */ + PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1, 0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_PLAYER(1) - PORT_START_TAG("IN7") /* Player 2 Gun X ($f00003) */ - PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, -256.0/(256 - 0x40 - 0x40), -127.0/256, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_REVERSE PORT_PLAYER(2) - PORT_START_TAG("IN0") /* Player 2 Gun Y ($f00003) */ - PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 256.0/(256 - 0x48 - 0x58), -193.0/256, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_PLAYER(2) + PORT_START_TAG("IN7") /* Player 2 Gun X ($f00003) */ + PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, -1, 0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_REVERSE PORT_PLAYER(2) + PORT_START_TAG("IN8") /* Player 2 Gun Y ($f00003) */ + PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1, 0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_PLAYER(2) INPUT_PORTS_END