فهرست منبع

Added a define VERBOSE_MOTION_EVENTS to show mouse and finger motion events

Sam Lantinga 3 سال پیش
والد
کامیت
0e198a8799
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      src/test/SDL_test_common.c

+ 2 - 0
src/test/SDL_test_common.c

@@ -1464,10 +1464,12 @@ default: return "???";
 static void
 SDLTest_PrintEvent(SDL_Event * event)
 {
+#ifndef VERBOSE_MOTION_EVENTS
     if ((event->type == SDL_MOUSEMOTION) || (event->type == SDL_FINGERMOTION)) {
         /* Mouse and finger motion are really spammy */
         return;
     }
+#endif
 
     switch (event->type) {
     case SDL_DISPLAYEVENT: