Allow keyboard input when the mouse is not captured

This commit is contained in:
Cameron Gutman 2020-04-24 21:35:38 -07:00
parent 0892f0b0bb
commit 07128cc7fe

View file

@ -354,11 +354,6 @@ void SdlInputHandler::handleKeyEvent(SDL_KeyboardEvent* event)
}
}
if (!isCaptureActive()) {
// Not capturing
return;
}
if (event->repeat) {
// Ignore repeat key down events
SDL_assert(event->state == SDL_PRESSED);