GDK: Xbox should have input focus by default
This commit is contained in:
1 parent
d118af53a1
commit
d9a5ed75b9
1 file changed
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user