소스 검색

Fix touchid assertion faliure on emscripten

Cyao 1 년 전
부모
커밋
4022682c28
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 {