src/core/linux/SDL_evdev.c
changeset 12404 eb60e952b13f
parent 12160 c63903ab7150
child 12503 806492103856
equal deleted inserted replaced
12403:a4d730631698 12404:eb60e952b13f
   473     for(i = 0; i < item->touchscreen_data->max_slots; i++) {
   473     for(i = 0; i < item->touchscreen_data->max_slots; i++) {
   474         item->touchscreen_data->slots[i].tracking_id = -1;
   474         item->touchscreen_data->slots[i].tracking_id = -1;
   475     }
   475     }
   476 
   476 
   477     ret = SDL_AddTouch(item->fd, /* I guess our fd is unique enough */
   477     ret = SDL_AddTouch(item->fd, /* I guess our fd is unique enough */
       
   478         SDL_TOUCH_DEVICE_DIRECT,
   478         item->touchscreen_data->name);
   479         item->touchscreen_data->name);
   479     if (ret < 0) {
   480     if (ret < 0) {
   480         SDL_free(item->touchscreen_data->slots);
   481         SDL_free(item->touchscreen_data->slots);
   481         SDL_free(item->touchscreen_data->name);
   482         SDL_free(item->touchscreen_data->name);
   482         SDL_free(item->touchscreen_data);
   483         SDL_free(item->touchscreen_data);