seeming contradiction for SDL3/CategoryJoystick vs SDL2/SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS
on the CategoryJoystick page, we read
> If you would like to receive joystick updates while the application is in the background, you should set the following hint before calling [SDL_Init](https://wiki.libsdl.org/SDL3/SDL_Init)(): [SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS](https://wiki.libsdl.org/SDL3/SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS)
but on SDL3/SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, we see
> This hint can be set anytime.
This seems to contradict itself since one says we need to set the hint before we initialize but the other seems to suggest we can toggle background events whenever.
关闭于 2026-02-06 2 条评论