KonamiGX: Tweek le2 gun aiming.  Reloading off the top and bottom of the screen works again.
This commit is contained in:
R. Belmont 2008-10-12 16:13:43 +00:00
parent 3518ae84ac
commit 29e2e3855e

View File

@ -873,16 +873,19 @@ static double adc0834_callback( int input )
static READ32_HANDLER( le2_gun_H_r )
{
int p1x = input_port_read(machine, "LIGHT0_X")*287/0xff+22;
int p2x = input_port_read(machine, "LIGHT1_X")*287/0xff+22;
int p1x = input_port_read(machine, "LIGHT0_X")*290/0xff+20;
int p2x = input_port_read(machine, "LIGHT1_X")*290/0xff+20;
return (p1x<<16)|p2x;
}
static READ32_HANDLER( le2_gun_V_r )
{
int p1y = input_port_read(machine, "LIGHT0_Y")*223/0xff+1;
int p2y = input_port_read(machine, "LIGHT1_Y")*223/0xff+1;
int p1y = input_port_read(machine, "LIGHT0_Y")*224/0xff;
int p2y = input_port_read(machine, "LIGHT1_Y")*224/0xff;
// make "off the bottom" reload too
if (p1y >= 0xdf) p1y = 0;
return (p1y<<16)|p2y;
}