Parcourir la source

Fix touchid assertion faliure on emscripten

Cyao il y a 1 an
Parent
commit
4022682c28
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/video/emscripten/SDL_emscriptenevents.c

+ 1 - 1
src/video/emscripten/SDL_emscriptenevents.c

@@ -762,7 +762,7 @@ static EM_BOOL Emscripten_HandleTouch(int eventType, const EmscriptenTouchEvent
             continue;
         }
 
-        id = touchEvent->touches[i].identifier;
+        id = touchEvent->touches[i].identifier + 1;
         if (client_w <= 1) {
             x = 0.5f;
         } else {