Skip to content

Conversation

mardy
Copy link
Collaborator

@mardy mardy commented Jan 19, 2024

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.

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.
@WinterMute WinterMute merged commit d2a32de into devkitPro:ogc-sdl-2.28 Jan 20, 2024
WinterMute pushed a commit that referenced this pull request Oct 27, 2024
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants