GDK: Xbox should have input focus by default

This commit is contained in:
Caleb Cornett
2024-08-25 20:44:25 -05:00
committed by Ethan Lee
parent d118af53a1
commit d9a5ed75b9

View File

@@ -523,6 +523,7 @@ static int SetupWindowData(SDL_VideoDevice *_this, SDL_Window *window, HWND hwnd
#if defined(SDL_PLATFORM_XBOXONE) || defined(SDL_PLATFORM_XBOXSERIES)
window->flags |= SDL_WINDOW_INPUT_FOCUS;
SDL_SetKeyboardFocus(window);
#else
if (GetFocus() == hwnd) {
window->flags |= SDL_WINDOW_INPUT_FOCUS;