src/video/emscripten/SDL_emscriptenevents.c
changeset 12404 eb60e952b13f
parent 11811 5d94cb6b24d3
child 12503 806492103856
equal deleted inserted replaced
12403:a4d730631698 12404:eb60e952b13f
   426     int i;
   426     int i;
   427     double client_w, client_h;
   427     double client_w, client_h;
   428     int preventDefault = 0;
   428     int preventDefault = 0;
   429 
   429 
   430     SDL_TouchID deviceId = 1;
   430     SDL_TouchID deviceId = 1;
   431     if (SDL_AddTouch(deviceId, "") < 0) {
   431     if (SDL_AddTouch(deviceId, SDL_TOUCH_DEVICE_DIRECT, "") < 0) {
   432          return 0;
   432          return 0;
   433     }
   433     }
   434 
   434 
   435     emscripten_get_element_css_size(NULL, &client_w, &client_h);
   435     emscripten_get_element_css_size(NULL, &client_w, &client_h);
   436 
   436