mirror of https://github.com/stella-emu/stella.git
Fix a very minor timing glitch in paddle emulation.
This commit is contained in:
parent
2757c906cb
commit
5ca9b7912b
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue