Add comments

This commit is contained in:
Christian Semmler 2025-06-12 14:04:11 -07:00
parent d48ed3749d
commit da2c15871a
No known key found for this signature in database
GPG Key ID: 086DAA1360BEEE5C
2 changed files with 3 additions and 0 deletions

View File

@ -387,6 +387,7 @@ SDL_AppResult SDL_AppEvent(void* appstate, SDL_Event* event)
#ifdef __EMSCRIPTEN__
// Workaround for the fact we are getting both mouse & touch events on mobile devices running Emscripten.
// On desktops, we are only getting mouse events, but a touch device (pen_input) may also be present...
// See: https://github.com/libsdl-org/SDL/issues/13161
static bool detectedTouchEvents = false;
#endif

View File

@ -17,6 +17,8 @@
#define DDBitDepths DWORD
#endif
// SDL will not put the message box on the main thread by default.
// See: https://github.com/libsdl-org/SDL/issues/12943
#ifdef __EMSCRIPTEN__
#define Any_ShowSimpleMessageBox Emscripten_ShowSimpleMessageBox
#else