Potential fix for issue #392 (input locked after exiting the debugger).

This commit is contained in:
Stephen Anthony 2018-12-04 13:19:57 -03:30
parent 2e4340911b
commit b06893d384
1 changed files with 3 additions and 1 deletions

View File

@ -1201,7 +1201,6 @@ void EventHandler::setState(EventHandlerState state)
case EventHandlerState::LAUNCHER:
myOverlay = &myOSystem.launcher();
enableTextEvents(true);
myEvent.clear();
break;
case EventHandlerState::DEBUGGER:
@ -1225,6 +1224,9 @@ void EventHandler::setState(EventHandlerState state)
// Sometimes an extraneous mouse motion event is generated
// after a state change, which should be supressed
mySkipMouseMotion = true;
// Erase and pending events
myEvent.clear();
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -