From a2d3be904b219e4257fb11a8ecb51f5f9a9e60f7 Mon Sep 17 00:00:00 2001 From: Francisco Javier Trujillo Mata Date: Fri, 5 Aug 2022 00:27:41 +0200 Subject: [PATCH] Implement create windows method --- src/video/ps2/SDL_ps2video.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/video/ps2/SDL_ps2video.c b/src/video/ps2/SDL_ps2video.c index 3fbe569e5a..9ada4edaf9 100644 --- a/src/video/ps2/SDL_ps2video.c +++ b/src/video/ps2/SDL_ps2video.c @@ -58,6 +58,14 @@ static void PS2_DeleteDevice(SDL_VideoDevice * device) SDL_free(device); } +static int PS2_CreateWindow(_THIS, SDL_Window * window) +{ + SDL_SetKeyboardFocus(window); + + /* Window has been successfully created */ + return 0; +} + static int PS2_VideoInit(_THIS) { SDL_VideoDisplay display; @@ -109,6 +117,7 @@ static SDL_VideoDevice *PS2_CreateDevice(void) device->VideoInit = PS2_VideoInit; device->VideoQuit = PS2_VideoQuit; device->SetDisplayMode = PS2_SetDisplayMode; + device->CreateSDLWindow = PS2_CreateWindow; device->PumpEvents = PS2_PumpEvents; device->free = PS2_DeleteDevice;