diff options
Diffstat (limited to 'src/devices/bus/vcs_ctrl/wheel.cpp')
-rw-r--r-- | src/devices/bus/vcs_ctrl/wheel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/bus/vcs_ctrl/wheel.cpp b/src/devices/bus/vcs_ctrl/wheel.cpp index 76e86530cf8..c470f9117ec 100644 --- a/src/devices/bus/vcs_ctrl/wheel.cpp +++ b/src/devices/bus/vcs_ctrl/wheel.cpp @@ -20,7 +20,7 @@ DEFINE_DEVICE_TYPE(VCS_WHEEL, vcs_wheel_device, "vcs_wheel", "Atari / CBM Drivin static INPUT_PORTS_START( vcs_wheel ) PORT_START("JOY") - PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) // Pin 6 + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_WRITE_LINE_MEMBER(FUNC(vcs_wheel_device::trigger_w)) // Pin 6 PORT_BIT( 0xdc, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_START("WHEEL") @@ -73,5 +73,5 @@ uint8_t vcs_wheel_device::vcs_joy_r() { static const uint8_t driving_lookup[4] = { 0x00, 0x02, 0x03, 0x01 }; - return m_joy->read() | driving_lookup[ ( m_wheel->read() & 0x18 ) >> 3 ]; + return m_joy->read() | driving_lookup[BIT(m_wheel->read(), 3, 2)]; } |