Selaa lähdekoodia

docs: Note that Windows might block SDL_PollEvent() on window drag.

Reference Issue #13435.
unknown 2 päivää sitten
vanhempi
commit
84981ead73
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 7 0
      include/SDL3/SDL_events.h

+ 7 - 0
include/SDL3/SDL_events.h

@@ -1260,6 +1260,13 @@ extern SDL_DECLSPEC void SDLCALL SDL_FlushEvents(Uint32 minType, Uint32 maxType)
  * }
  * ```
  *
+ * Note that Windows (and possibly other platforms) has a quirk about how it
+ * handles events while dragging/resizing a window, which can cause this
+ * function to block for significant amounts of time. Technical explanations
+ * and solutions are discussed on the wiki:
+ *
+ * https://wiki.libsdl.org/SDL3/AppFreezeDuringDrag
+ *
  * \param event the SDL_Event structure to be filled with the next event from
  *              the queue, or NULL.
  * \returns true if this got an event or false if there are none available.