mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
seattle/vegas: Set wheel calibration complete as soon as any SYSTEM button is hit. (nw)
This commit is contained in:
parent
a67d71a89b
commit
64dcd81d85
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user