diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-27 18:55:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-27 18:55:31 +0400 |
commit | 7413adce042a4f9d5440a41ede705e474aa8f8b6 (patch) | |
tree | 143149fe644073fa4eac743091fa5ff65053e882 /source/blender/windowmanager | |
parent | 4959c8767eead042439dda7ccc6bae21e1457ea5 (diff) |
add back debug prints for event handlers. not sure why they were removed in r51683
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index b912878edf3..04ea8ad0fd0 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -1696,10 +1696,8 @@ static int wm_handlers_do_intern(bContext *C, wmEvent *event, ListBase *handlers #ifndef NDEBUG if (do_debug_handler) { - /* in rare cases you may want to comment this out for testing, - * but mostly this is just annoying */ - //printf("%s: handling event\n", __func__); - //WM_event_print(event); + printf("%s: handling event\n", __func__); + WM_event_print(event); } #endif @@ -1731,7 +1729,7 @@ static int wm_handlers_do_intern(bContext *C, wmEvent *event, ListBase *handlers #ifndef NDEBUG if (do_debug_handler) { - //printf("%s: checking '%s' ...", __func__, keymap->idname); + printf("%s: checking '%s' ...", __func__, keymap->idname); } #endif @@ -1739,7 +1737,7 @@ static int wm_handlers_do_intern(bContext *C, wmEvent *event, ListBase *handlers #ifndef NDEBUG if (do_debug_handler) { - //printf("pass\n"); + printf("pass\n"); } #endif @@ -1748,7 +1746,7 @@ static int wm_handlers_do_intern(bContext *C, wmEvent *event, ListBase *handlers #ifndef NDEBUG if (do_debug_handler) { - //printf("%s: item matched '%s'\n", __func__, kmi->idname); + printf("%s: item matched '%s'\n", __func__, kmi->idname); } #endif @@ -1760,7 +1758,7 @@ static int wm_handlers_do_intern(bContext *C, wmEvent *event, ListBase *handlers /* not always_pass here, it denotes removed handler */ #ifndef NDEBUG if (do_debug_handler) { - //printf("%s: handled! '%s'...", __func__, kmi->idname); + printf("%s: handled! '%s'...", __func__, kmi->idname); } #endif break; @@ -1768,7 +1766,7 @@ static int wm_handlers_do_intern(bContext *C, wmEvent *event, ListBase *handlers else { #ifndef NDEBUG if (do_debug_handler) { - //printf("%s: un-handled '%s'...", __func__, kmi->idname); + printf("%s: un-handled '%s'...", __func__, kmi->idname); } #endif } @@ -1778,7 +1776,7 @@ static int wm_handlers_do_intern(bContext *C, wmEvent *event, ListBase *handlers else { #ifndef NDEBUG if (do_debug_handler) { - //printf("fail\n"); + printf("fail\n"); } #endif } |