diff options
author | Joshua Leung <aligorith@gmail.com> | 2011-01-27 02:58:20 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2011-01-27 02:58:20 +0300 |
commit | 340e411889d85f183ede4be6442436d7d2c83103 (patch) | |
tree | cf99702e1b4f77775614cc216b87c9b6f8b41871 | |
parent | 50e09b15a99333ed657f70a8a38bf28d5849506e (diff) |
Silencing some annoying key-event prints in Win32 console:
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 :)
-rw-r--r-- | intern/ghost/intern/GHOST_SystemWin32.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp index 106c09acd69..24f9e96b109 100644 --- a/intern/ghost/intern/GHOST_SystemWin32.cpp +++ b/intern/ghost/intern/GHOST_SystemWin32.cpp @@ -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; |