mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-24 17:05:37 +00:00
Reset the keyboard state when launching a message box (thanks, Sean!).
Otherwise, pressed keys get stuck. Fixes Bugzilla #2776.
This commit is contained in:
parent
41908548b9
commit
be89fa09ef
|
@ -3418,6 +3418,7 @@ SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
|
||||||
SDL_CaptureMouse(SDL_FALSE);
|
SDL_CaptureMouse(SDL_FALSE);
|
||||||
SDL_SetRelativeMouseMode(SDL_FALSE);
|
SDL_SetRelativeMouseMode(SDL_FALSE);
|
||||||
show_cursor_prev = SDL_ShowCursor(1);
|
show_cursor_prev = SDL_ShowCursor(1);
|
||||||
|
SDL_ResetKeyboard();
|
||||||
|
|
||||||
if (!buttonid) {
|
if (!buttonid) {
|
||||||
buttonid = &dummybutton;
|
buttonid = &dummybutton;
|
||||||
|
|
Loading…
Reference in a new issue