소스 검색

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
 static void
 SDLTest_PrintEvent(SDL_Event * event)
 SDLTest_PrintEvent(SDL_Event * event)
 {
 {
+#ifndef VERBOSE_MOTION_EVENTS
     if ((event->type == SDL_MOUSEMOTION) || (event->type == SDL_FINGERMOTION)) {
     if ((event->type == SDL_MOUSEMOTION) || (event->type == SDL_FINGERMOTION)) {
         /* Mouse and finger motion are really spammy */
         /* Mouse and finger motion are really spammy */
         return;
         return;
     }
     }
+#endif
 
 
     switch (event->type) {
     switch (event->type) {
     case SDL_DISPLAYEVENT:
     case SDL_DISPLAYEVENT: