mirror of
https://github.com/libretro/stella2023.git
synced 2025-02-12 04:23:01 +00:00
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();
|
||||
}
|
||||
return;
|
||||
case Event::Console7800Pause:
|
||||
if(pressed && !repeated)
|
||||
case Event::Console7800Pause: // only works in 7800 mode
|
||||
if(myIs7800 && !repeated)
|
||||
{
|
||||
myEvent.set(Event::Console7800Pause, myOSystem.console().switches().tvColor() ? 1 : 0);
|
||||
if (myIs7800)
|
||||
// Press and release pause button
|
||||
if(pressed)
|
||||
myOSystem.frameBuffer().showTextMessage("Pause pressed");
|
||||
myEvent.set(Event::Console7800Pause, pressed);
|
||||
myOSystem.console().switches().update();
|
||||
}
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user