From 5ca9b7912b5c91cc23649c3a6e3eb6f7b19411f6 Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Sat, 2 Sep 2017 00:53:08 +0200 Subject: [PATCH] Fix a very minor timing glitch in paddle emulation. --- src/emucore/tia/TIA.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/emucore/tia/TIA.cxx b/src/emucore/tia/TIA.cxx index 04c562e70..dadfc5075 100644 --- a/src/emucore/tia/TIA.cxx +++ b/src/emucore/tia/TIA.cxx @@ -339,15 +339,15 @@ void TIA::bindToControllers() { myConsole.leftController().setOnAnalogPinUpdateCallback( [this] (Controller::AnalogPin pin) { - TIA& tia = mySystem->tia(); + updateEmulation(); switch (pin) { case Controller::AnalogPin::Five: - tia.updatePaddle(1); + updatePaddle(1); break; case Controller::AnalogPin::Nine: - tia.updatePaddle(0); + updatePaddle(0); break; } } @@ -355,15 +355,15 @@ void TIA::bindToControllers() myConsole.rightController().setOnAnalogPinUpdateCallback( [this] (Controller::AnalogPin pin) { - TIA& tia = mySystem->tia(); + updateEmulation(); switch (pin) { case Controller::AnalogPin::Five: - tia.updatePaddle(3); + updatePaddle(3); break; case Controller::AnalogPin::Nine: - tia.updatePaddle(2); + updatePaddle(2); break; } }