src/test/SDL_test_common.c
changeset 9258 95c3682d0b95
parent 9046 c3ec7c3e6c24
child 9259 3154de62258e
equal deleted inserted replaced
9257:6f41196c2d6b 9258:95c3682d0b95
  1103         SDL_Log("SDL EVENT: Mouse: button %d released at %d,%d with click count %d in window %d",
  1103         SDL_Log("SDL EVENT: Mouse: button %d released at %d,%d with click count %d in window %d",
  1104                 event->button.button, event->button.x, event->button.y, event->button.clicks,
  1104                 event->button.button, event->button.x, event->button.y, event->button.clicks,
  1105                 event->button.windowID);
  1105                 event->button.windowID);
  1106         break;
  1106         break;
  1107     case SDL_MOUSEWHEEL:
  1107     case SDL_MOUSEWHEEL:
  1108         SDL_Log("SDL EVENT: Mouse: wheel scrolled %d in x and %d in y in window %d",
  1108         SDL_Log("SDL EVENT: Mouse: wheel scrolled %d in x and %d in y (reversed: %d) in window %d",
  1109                 event->wheel.x, event->wheel.y, event->wheel.windowID);
  1109                 event->wheel.x, event->wheel.y, event->wheel.reversed, event->wheel.windowID);
  1110         break;
  1110         break;
  1111     case SDL_JOYDEVICEADDED:
  1111     case SDL_JOYDEVICEADDED:
  1112         SDL_Log("SDL EVENT: Joystick index %d attached",
  1112         SDL_Log("SDL EVENT: Joystick index %d attached",
  1113             event->jdevice.which);
  1113             event->jdevice.which);
  1114         break;
  1114         break;
  1201                 (long) event->tfinger.touchId,
  1201                 (long) event->tfinger.touchId,
  1202                 (long) event->tfinger.fingerId,
  1202                 (long) event->tfinger.fingerId,
  1203                 event->tfinger.x, event->tfinger.y,
  1203                 event->tfinger.x, event->tfinger.y,
  1204                 event->tfinger.dx, event->tfinger.dy, event->tfinger.pressure);
  1204                 event->tfinger.dx, event->tfinger.dy, event->tfinger.pressure);
  1205         break;
  1205         break;
       
  1206     case SDL_DOLLARGESTURE:
       
  1207         SDL_Log("SDL_EVENT: Dollar gesture detect: %lld", event->dgesture.gestureId);
       
  1208         break;
       
  1209     case SDL_DOLLARRECORD:
       
  1210         SDL_Log("SDL_EVENT: Dollar gesture record: %lld", event->dgesture.gestureId);
       
  1211         break;
       
  1212     case SDL_MULTIGESTURE:
       
  1213         SDL_Log("SDL_EVENT: Multi gesture fingers: %d", event->mgesture.numFingers);
       
  1214         break;
  1206 
  1215 
  1207     case SDL_RENDER_DEVICE_RESET:
  1216     case SDL_RENDER_DEVICE_RESET:
  1208         SDL_Log("SDL EVENT: render device reset");
  1217         SDL_Log("SDL EVENT: render device reset");
  1209         break;
  1218         break;
  1210     case SDL_RENDER_TARGETS_RESET:
  1219     case SDL_RENDER_TARGETS_RESET:
  1216         break;
  1225         break;
  1217     case SDL_USEREVENT:
  1226     case SDL_USEREVENT:
  1218         SDL_Log("SDL EVENT: User event %d", event->user.code);
  1227         SDL_Log("SDL EVENT: User event %d", event->user.code);
  1219         break;
  1228         break;
  1220     default:
  1229     default:
  1221         SDL_Log("Unknown event %d", event->type);
  1230         SDL_Log("Unknown event %04x", event->type);
  1222         break;
  1231         break;
  1223     }
  1232     }
  1224 }
  1233 }
  1225 
  1234 
  1226 static void
  1235 static void