Fix a very minor timing glitch in paddle emulation.

This commit is contained in:
Christian Speckner 2017-09-02 00:53:08 +02:00
parent 2757c906cb
commit 5ca9b7912b
1 changed files with 6 additions and 6 deletions

View File

@ -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;
}
}