Document platform gamepad hotplug requirements

Fixes https://github.com/libsdl-org/SDL/issues/11742
This commit is contained in:
Sam Lantinga
2025-01-02 11:16:35 -08:00
parent ecf8dd054d
commit dd6b484359

View File

@@ -63,6 +63,8 @@
* By default SDL will try to use the most capable driver available, but you
* can tune which OS drivers to use with the various joystick hints in
* SDL_hints.h.
*
* Your application should always support gamepad hotplugging. On some platforms like Xbox, Steam Deck, etc., this is a requirement for certification. On other platforms, like macOS and Windows when using Windows.Gaming.Input, controllers may not be available at startup and will come in at some point after you've started processing events.
*/
#ifndef SDL_gamepad_h_