mirror of https://github.com/stella-emu/stella.git
Fix update order, change genesis to pull pin to ground.
This commit is contained in:
parent
e6a8281a37
commit
08cd88c084
|
@ -41,5 +41,5 @@ void Genesis::updateButtons()
|
|||
updateMouseButtons(firePressed, buttonCPressed);
|
||||
|
||||
setPin(DigitalPin::Six, !getAutoFireState(firePressed));
|
||||
setPin(AnalogPin::Five, buttonCPressed ? AnalogReadout::disconnect() : AnalogReadout::connectToVcc());
|
||||
setPin(AnalogPin::Five, buttonCPressed ? AnalogReadout::connectToGround() : AnalogReadout::connectToVcc());
|
||||
}
|
||||
|
|
|
@ -71,9 +71,9 @@ void AnalogReadout::update(Connection connection, uInt64 timestamp, ConsoleTimin
|
|||
}
|
||||
|
||||
if (connection != myConnection) {
|
||||
myConnection = connection;
|
||||
|
||||
updateCharge(timestamp);
|
||||
|
||||
myConnection = connection;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue