mirror of https://github.com/stella-emu/stella.git
Merge branch 'master' of https://github.com/stella-emu/stella
This commit is contained in:
commit
2015d98abf
|
@ -86,7 +86,7 @@ void GenesisWidget::loadConfig()
|
||||||
myPins[kJBbtn]->setState(!getPin(ourPinNo[kJBbtn]));
|
myPins[kJBbtn]->setState(!getPin(ourPinNo[kJBbtn]));
|
||||||
|
|
||||||
myPins[kJCbtn]->setState(
|
myPins[kJCbtn]->setState(
|
||||||
getPin(Controller::AnalogPin::Five) == AnalogReadout::disconnect());
|
getPin(Controller::AnalogPin::Five) == AnalogReadout::connectToGround());
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
@ -106,7 +106,7 @@ void GenesisWidget::handleCommand(
|
||||||
break;
|
break;
|
||||||
case kJCbtn:
|
case kJCbtn:
|
||||||
setPin(Controller::AnalogPin::Five,
|
setPin(Controller::AnalogPin::Five,
|
||||||
myPins[id]->getState() ? AnalogReadout::disconnect() :
|
myPins[id]->getState() ? AnalogReadout::connectToGround() :
|
||||||
AnalogReadout::connectToVcc());
|
AnalogReadout::connectToVcc());
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue