From c8cfe8eec5b2c00a12ef9e37b72ba34c63504e3a Mon Sep 17 00:00:00 2001 From: AJR Date: Wed, 6 Mar 2024 00:00:49 -0500 Subject: [PATCH] cx85: Invert polarity of B pot output --- src/devices/bus/vcs_ctrl/cx85.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/devices/bus/vcs_ctrl/cx85.cpp b/src/devices/bus/vcs_ctrl/cx85.cpp index 6f987a99250..d2a77d8af67 100644 --- a/src/devices/bus/vcs_ctrl/cx85.cpp +++ b/src/devices/bus/vcs_ctrl/cx85.cpp @@ -4,6 +4,8 @@ Atari CX85 Numeric Keypad + Normal Atari 400/800 usage has this connect to controller port 2. + **********************************************************************/ #include "emu.h" @@ -119,5 +121,6 @@ u8 atari_cx85_device::vcs_joy_r() u8 atari_cx85_device::vcs_pot_x_r() { - return BIT(m_encoder->read(), 4) ? 0 : 0xff; + // Schematics suggests this should also be inverted through 4049B, but drivers seem to work the opposite way + return BIT(m_encoder->read(), 4) ? 0xff : 0; }