From 64dcd81d85355e5485f9e073138905b9dbbf6be5 Mon Sep 17 00:00:00 2001 From: Ted Green Date: Sat, 16 Dec 2017 14:33:09 -0700 Subject: [PATCH] seattle/vegas: Set wheel calibration complete as soon as any SYSTEM button is hit. (nw) --- src/mame/drivers/seattle.cpp | 4 ++-- src/mame/drivers/vegas.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mame/drivers/seattle.cpp b/src/mame/drivers/seattle.cpp index 48ad4959f39..1cc35bd53c2 100644 --- a/src/mame/drivers/seattle.cpp +++ b/src/mame/drivers/seattle.cpp @@ -632,8 +632,8 @@ WRITE32_MEMBER(seattle_state::analog_port_w) else { m_pending_analog_read = currValue; } - // Declare calibration finished as soon as non-middle value is detected, ie the user has turned the wheel - if (!m_wheel_calibrated && currValue != 0 && (currValue > (0x80 + 0x10) || currValue < (0x80 - 0x10))) { + // Declare calibration finished as soon as a SYSTEM button is hit + if (!m_wheel_calibrated && ((~ioport("SYSTEM")->read()) & 0xffff)) { m_wheel_calibrated = true; //osd_printf_info("wheel calibration comlete wheel: %02x\n", currValue); } diff --git a/src/mame/drivers/vegas.cpp b/src/mame/drivers/vegas.cpp index a5f4cad6d95..4cc5c1504cc 100644 --- a/src/mame/drivers/vegas.cpp +++ b/src/mame/drivers/vegas.cpp @@ -901,8 +901,8 @@ WRITE32_MEMBER( vegas_state::analog_port_w ) else { m_pending_analog_read = currValue; } - // Declare calibration finished as soon as non-middle value is detected, ie the user has turned the wheel - if (!m_wheel_calibrated && currValue != 0 && (currValue > (0x80 + 0x10) || currValue < (0x80 - 0x10))) { + // Declare calibration finished as soon as a SYSTEM button is hit + if (!m_wheel_calibrated && ((~ioport("SYSTEM")->read()) & 0xffff)) { m_wheel_calibrated = true; //osd_printf_info("wheel calibration comlete wheel: %02x\n", currValue); }