mirror of
https://github.com/yawut/SDL.git
synced 2026-04-24 23:37:09 -05:00
video/wiiu: Call SDL_SetKeyboardFocus on window creation
This commit is contained in:
parent
fab05b5179
commit
aebe08cf45
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user