Silencing some annoying key-event prints in Win32 console:
authorJoshua Leung <aligorith@gmail.com>
Wed, 26 Jan 2011 23:58:20 +0000 (23:58 +0000)
committerJoshua Leung <aligorith@gmail.com>
Wed, 26 Jan 2011 23:58:20 +0000 (23:58 +0000)
The console was getting flooded with output like
g

i

i
...
all as a result of what looks like a debugging print. Whoever put this
in, you can get back your debugging prints by enabling BF_GHOST_DEBUG
in your local config :)

intern/ghost/intern/GHOST_SystemWin32.cpp

index 106c09acd6902773518c3dd0e7d5ae2df26ed3af..24f9e96b109e1e290d064440bbe53712911a8fc7 100644 (file)
@@ -738,7 +738,10 @@ GHOST_EventKey* GHOST_SystemWin32::processKeyEvent(GHOST_IWindow *window, bool k
                }
 
                event = new GHOST_EventKey(getSystem()->getMilliSeconds(), keyDown ? GHOST_kEventKeyDown: GHOST_kEventKeyUp, window, key, ascii);
+               
+#ifdef BF_GHOST_DEBUG
                std::cout << ascii << std::endl;
+#endif
        }
        else {
                event = 0;