From cd25f2de50864c2897ca7f5aa604696c87a49807 Mon Sep 17 00:00:00 2001 From: angelosa Date: Tue, 28 May 2024 01:45:23 +0200 Subject: konami/konamigx.cpp: hookup racinfrc brake and gear shift inputs --- src/mame/konami/konamigx.cpp | 25 +++++++++++++++++++++---- src/mame/konami/konamigx_v.cpp | 2 +- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/src/mame/konami/konamigx.cpp b/src/mame/konami/konamigx.cpp index 62156b5833b..9a3f903524e 100644 --- a/src/mame/konami/konamigx.cpp +++ b/src/mame/konami/konamigx.cpp @@ -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") diff --git a/src/mame/konami/konamigx_v.cpp b/src/mame/konami/konamigx_v.cpp index 880a634a6b7..2f1cf7a07c1 100644 --- a/src/mame/konami/konamigx_v.cpp +++ b/src/mame/konami/konamigx_v.cpp @@ -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 -- cgit v1.2.3