test/testgesture.c
changeset 9235 ba9988f0daec
parent 8917 23182cf59f1c
child 9273 9f1c18388f2c
equal deleted inserted replaced
9234:199baca091f9 9235:ba9988f0daec
   213         quitting = SDL_TRUE;
   213         quitting = SDL_TRUE;
   214         break;
   214         break;
   215       case SDL_KEYDOWN:
   215       case SDL_KEYDOWN:
   216         switch (event.key.keysym.sym)
   216         switch (event.key.keysym.sym)
   217           {
   217           {
       
   218               case SDLK_i:
       
   219               {
       
   220                   int i;
       
   221                   for (i = 0; i < SDL_GetNumTouchDevices(); ++i) {
       
   222                       SDL_TouchID id = SDL_GetTouchDevice(i);
       
   223                       SDL_Log("Fingers Down on device %"SDL_PRIs64": %d", id, SDL_GetNumTouchFingers(id));
       
   224                   }
       
   225                   break;
       
   226               }
   218           case SDLK_SPACE:
   227           case SDLK_SPACE:
   219         SDL_RecordGesture(-1);
   228         SDL_RecordGesture(-1);
   220         break;
   229         break;
   221           case SDLK_s:
   230           case SDLK_s:
   222         stream = SDL_RWFromFile("gestureSave", "w");
   231         stream = SDL_RWFromFile("gestureSave", "w");