Browse Source

Document platform gamepad hotplug requirements

Fixes https://github.com/libsdl-org/SDL/issues/11742
Sam Lantinga 3 months ago
parent
commit
dd6b484359
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/SDL3/SDL_gamepad.h

+ 2 - 0
include/SDL3/SDL_gamepad.h

@@ -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_