Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ogc: always give focus to the window (#44)
We support only one window and that should receive the focus. Failing to do this breaks the delivering of Joystick and GameController events, unless the SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS hints is set (which is not, by default). Some backends do this in CreateWindow(), some in ShowWindow(). In our case it doesn't really make a difference, but ShowWindow() sounds more correct.
- Loading branch information