From 014b79dcff5e5b791a5d2fdcebabdd5309e9058b Mon Sep 17 00:00:00 2001 From: Ash Logan Date: Wed, 20 Feb 2019 21:44:15 +1100 Subject: [PATCH] video/wiiu: Call SDL_SetKeyboardFocus on window creation --- src/video/wiiu/SDL_wiiuvideo.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/video/wiiu/SDL_wiiuvideo.c b/src/video/wiiu/SDL_wiiuvideo.c index 3ba8abaab..fa8a16383 100644 --- a/src/video/wiiu/SDL_wiiuvideo.c +++ b/src/video/wiiu/SDL_wiiuvideo.c @@ -242,6 +242,11 @@ static void WIIU_DestroyWindowFramebuffer(_THIS, SDL_Window *window) SDL_free(data); } +static int WIIU_CreateSDLWindow(_THIS, SDL_Window *window) { + SDL_SetKeyboardFocus(window); + return 0; +} + static int WIIU_SetDisplayMode(_THIS, SDL_VideoDisplay *display, SDL_DisplayMode *mode) { return 0; @@ -275,6 +280,7 @@ static SDL_VideoDevice *WIIU_CreateDevice(int devindex) device->VideoQuit = WIIU_VideoQuit; device->SetDisplayMode = WIIU_SetDisplayMode; device->PumpEvents = WIIU_PumpEvents; + device->CreateSDLWindow = WIIU_CreateSDLWindow; //device->CreateWindowFramebuffer = WIIU_CreateWindowFramebuffer; //device->UpdateWindowFramebuffer = WIIU_UpdateWindowFramebuffer; //device->DestroyWindowFramebuffer = WIIU_DestroyWindowFramebuffer;