Allow keyboard input when the mouse is not captured
This commit is contained in:
parent
0892f0b0bb
commit
07128cc7fe
1 changed files with 0 additions and 5 deletions
|
|
@ -354,11 +354,6 @@ void SdlInputHandler::handleKeyEvent(SDL_KeyboardEvent* event)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isCaptureActive()) {
|
|
||||||
// Not capturing
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (event->repeat) {
|
if (event->repeat) {
|
||||||
// Ignore repeat key down events
|
// Ignore repeat key down events
|
||||||
SDL_assert(event->state == SDL_PRESSED);
|
SDL_assert(event->state == SDL_PRESSED);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue