mirror of https://github.com/stella-emu/stella.git
fixed 7800 pause button
This commit is contained in:
parent
cafc3572c3
commit
bb1b0ab953
|
@ -1660,12 +1660,13 @@ void EventHandler::handleEvent(Event::Type event, Int32 value, bool repeated)
|
||||||
myOSystem.console().switches().update();
|
myOSystem.console().switches().update();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
case Event::Console7800Pause:
|
case Event::Console7800Pause: // only works in 7800 mode
|
||||||
if(pressed && !repeated)
|
if(myIs7800 && !repeated)
|
||||||
{
|
{
|
||||||
myEvent.set(Event::Console7800Pause, myOSystem.console().switches().tvColor() ? 1 : 0);
|
// Press and release pause button
|
||||||
if (myIs7800)
|
if(pressed)
|
||||||
myOSystem.frameBuffer().showTextMessage("Pause pressed");
|
myOSystem.frameBuffer().showTextMessage("Pause pressed");
|
||||||
|
myEvent.set(Event::Console7800Pause, pressed);
|
||||||
myOSystem.console().switches().update();
|
myOSystem.console().switches().update();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue