浏览代码

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: