Fix SDL_GameController API for PSP (#3)

- Add missing mapping
- Make sure the only window has the keyboard focus (so no `SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS` is needed)
This commit is contained in:
Sergio Padrino
2020-05-15 20:45:30 +02:00
committed by Sam Lantinga
parent da0f76de6d
commit 6f6382f8d0
2 changed files with 4 additions and 0 deletions

View File

@@ -214,6 +214,7 @@ PSP_CreateWindow(_THIS, SDL_Window * window)
/* Setup driver data for this window */
window->driverdata = wdata;
SDL_SetKeyboardFocus(window);
/* Window has been successfully created */
return 0;