mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 01:55:38 +00:00
N3DS: Set keyboard focus to newly created windows.
This fixes polling issues with Joystick subsystem where `SDL_PrivateJoystickShouldIgnoreEvent` would always return true, thus ignoring all inputs.
This commit is contained in:
parent
491d0bcc3c
commit
80ff20f6fe
|
@ -178,6 +178,7 @@ N3DS_CreateWindow(_THIS, SDL_Window *window)
|
|||
display_data = (DisplayDriverData *) SDL_GetDisplayDriverData(window->display_index);
|
||||
window_data->screen = display_data->screen;
|
||||
window->driverdata = window_data;
|
||||
SDL_SetKeyboardFocus(window);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue