diff --git a/src/arch/emscripten/main.c b/src/arch/emscripten/main.c index e22622c..3f5b882 100644 --- a/src/arch/emscripten/main.c +++ b/src/arch/emscripten/main.c @@ -76,12 +76,10 @@ void mainloop() { mouse_data.x = (int)x; mouse_data.y = (int)y; - if (event.tfinger.fingerId == 0) { - if (event.type == SDL_FINGERDOWN || event.type == SDL_FINGERMOTION) { - mouse_data.btn1 = 1; - } else if (event.type == SDL_FINGERUP) { - mouse_data.btn1 = 0; - } + if (event.type == SDL_FINGERDOWN || event.type == SDL_FINGERMOTION) { + mouse_data.btn1 = 1; + } else if (event.type == SDL_FINGERUP) { + mouse_data.btn1 = 0; } break; }