src/video/android/SDL_androidtouch.c
changeset 7043 fb7b426ab660
parent 6951 7833f01322b3
child 7191 75360622e65f
equal deleted inserted replaced
7042:6460bf6d33cf 7043:fb7b426ab660
    61     if (!Android_Window) {
    61     if (!Android_Window) {
    62         return;
    62         return;
    63     }
    63     }
    64 
    64 
    65     touchDeviceId = (SDL_TouchID)touch_device_id_in;
    65     touchDeviceId = (SDL_TouchID)touch_device_id_in;
    66     if (!SDL_GetTouch(touchDeviceId)) {
    66     if (SDL_AddTouch(touchDeviceId, "") < 0) {
    67         if (SDL_AddTouch(touchDeviceId, "") < 0) {
    67         SDL_Log("error: can't add touch %s, %d", __FILE__, __LINE__);
    68              SDL_Log("error: can't add touch %s, %d", __FILE__, __LINE__);
       
    69         }
       
    70     }
    68     }
    71 
    69 
    72     fingerId = (SDL_FingerID)pointer_finger_id_in;
    70     fingerId = (SDL_FingerID)pointer_finger_id_in;
    73     switch (action) {
    71     switch (action) {
    74         case ACTION_DOWN:
    72         case ACTION_DOWN: