Fix compile failure in BSPF_UNIX (ie, Linux).

This commit is contained in:
Stephen Anthony 2022-02-02 09:57:54 -03:30
parent 6daa04c6f4
commit 2ff5fffe37
1 changed files with 8 additions and 8 deletions

View File

@ -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);