mirror of https://github.com/stella-emu/stella.git
Fix compile failure in BSPF_UNIX (ie, Linux).
This commit is contained in:
parent
6daa04c6f4
commit
2ff5fffe37
|
@ -362,24 +362,24 @@ void EventHandler::handleSystemEvent(SystemEvent e, int, int)
|
||||||
// Force full render update
|
// Force full render update
|
||||||
myOSystem.frameBuffer().update(FrameBuffer::UpdateMode::RERENDER);
|
myOSystem.frameBuffer().update(FrameBuffer::UpdateMode::RERENDER);
|
||||||
break;
|
break;
|
||||||
#ifdef BSPF_UNIX
|
|
||||||
case SystemEvent::WINDOW_FOCUS_GAINED:
|
|
||||||
// Used to handle Alt-x key combos; sometimes the key associated with
|
|
||||||
// Alt gets 'stuck' and is passed to the core for processing
|
|
||||||
if(myPKeyHandler->altKeyCount() > 0)
|
|
||||||
myPKeyHandler->altKeyCount() = 2;
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
#if 0
|
#if 0
|
||||||
case SystemEvent::WINDOW_MINIMIZED:
|
case SystemEvent::WINDOW_MINIMIZED:
|
||||||
if(myState == EventHandlerState::EMULATION)
|
if(myState == EventHandlerState::EMULATION)
|
||||||
enterMenuMode(EventHandlerState::OPTIONSMENU);
|
enterMenuMode(EventHandlerState::OPTIONSMENU);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
case SystemEvent::WINDOW_FOCUS_GAINED:
|
case SystemEvent::WINDOW_FOCUS_GAINED:
|
||||||
|
#ifdef BSPF_UNIX
|
||||||
|
// Used to handle Alt-x key combos; sometimes the key associated with
|
||||||
|
// Alt gets 'stuck' and is passed to the core for processing
|
||||||
|
if(myPKeyHandler->altKeyCount() > 0)
|
||||||
|
myPKeyHandler->altKeyCount() = 2;
|
||||||
|
#endif
|
||||||
if(myOSystem.settings().getBool("autopause") && myState == EventHandlerState::PAUSE)
|
if(myOSystem.settings().getBool("autopause") && myState == EventHandlerState::PAUSE)
|
||||||
setState(EventHandlerState::EMULATION);
|
setState(EventHandlerState::EMULATION);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SystemEvent::WINDOW_FOCUS_LOST:
|
case SystemEvent::WINDOW_FOCUS_LOST:
|
||||||
if(myOSystem.settings().getBool("autopause") && myState == EventHandlerState::EMULATION)
|
if(myOSystem.settings().getBool("autopause") && myState == EventHandlerState::EMULATION)
|
||||||
setState(EventHandlerState::PAUSE);
|
setState(EventHandlerState::PAUSE);
|
||||||
|
|
Loading…
Reference in New Issue