From da2c15871ac47ee9aa552cc4b56afbc8f5d1944a Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Thu, 12 Jun 2025 14:04:11 -0700 Subject: [PATCH] Add comments --- ISLE/isleapp.cpp | 1 + util/compat.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index 591b1e2e..be4842e2 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -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 diff --git a/util/compat.h b/util/compat.h index 4f680b22..e3b2aca9 100644 --- a/util/compat.h +++ b/util/compat.h @@ -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