konami/konamigx.cpp: hookup racinfrc brake and gear shift inputs

This commit is contained in:
angelosa 2024-05-28 01:45:23 +02:00
parent 61e62eab5d
commit cd25f2de50
2 changed files with 22 additions and 5 deletions

View File

@ -1267,9 +1267,18 @@ static INPUT_PORTS_START( common )
INPUT_PORTS_END
static INPUT_PORTS_START( racinfrc )
/* racin force needs Player 2 Button 1 ("IN3" & 0x10) set to get past the calibration screen */
PORT_INCLUDE( common )
PORT_MODIFY("INPUTS")
PORT_BIT( 0x000fffff, IP_ACTIVE_LOW, IPT_UNKNOWN )
// FIXME: this maps to nowhere according to service mode, verify
// Old note: needs Player 2 Button 1 ("IN3" & 0x10) set to get past the calibration screen
PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Calibration skip?")
PORT_BIT( 0x03e00000, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Gear Shift") PORT_TOGGLE
PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Brake")
PORT_BIT( 0xf0000000, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("ADC-WRPORT")
PORT_BIT( 0x1000000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("adc0834", adc083x_device, clk_write)
PORT_BIT( 0x2000000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("adc0834", adc083x_device, di_write)
@ -1307,7 +1316,7 @@ static INPUT_PORTS_START( racinfrc )
INPUT_PORTS_END
static INPUT_PORTS_START( opengolf )
PORT_INCLUDE( racinfrc )
PORT_INCLUDE( common )
PORT_MODIFY("INPUTS")
PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) PORT_NAME("P4 Shoot")
@ -1319,10 +1328,18 @@ static INPUT_PORTS_START( opengolf )
PORT_BIT( 0x10000000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_NAME("P1 Shoot")
PORT_BIT( 0x60000000, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_MODIFY("AN0")
PORT_START("ADC-WRPORT")
PORT_BIT( 0x1000000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("adc0834", adc083x_device, clk_write)
PORT_BIT( 0x2000000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("adc0834", adc083x_device, di_write)
PORT_BIT( 0x4000000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("adc0834", adc083x_device, cs_write)
PORT_START("ADC-RDPORT")
PORT_BIT( 0x1000000, IP_ACTIVE_LOW, IPT_CUSTOM ) PORT_READ_LINE_DEVICE_MEMBER("adc0834", adc083x_device, do_read)
PORT_START("AN0")
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_MODIFY("AN1")
PORT_START("AN1")
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_MODIFY("SYSTEM_DSW")

View File

@ -1473,7 +1473,7 @@ uint32_t konamigx_state::screen_update_konamigx(screen_device &screen, bitmap_rg
{
pen_t const *const paldata = m_palette->pens();
// hack, draw the roz tilemap if W is held
// draw the roz tilemap if W is held
if ( machine().input().code_pressed(KEYCODE_W) )
{
// make it flicker, to compare positioning