From 177f089e9a756a5d9d16fce5a657e6b099a183b9 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 1 Nov 2010 21:05:25 -0300 Subject: [PATCH] Minor changes in jmessage to debug JM_KEYPRESSED/RELEASED messages. --- src/gui/jmessage.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/jmessage.cpp b/src/gui/jmessage.cpp index bd597b224..1063ae50a 100644 --- a/src/gui/jmessage.cpp +++ b/src/gui/jmessage.cpp @@ -58,8 +58,10 @@ JMessage jmessage_new_key_related(int type, int readkey_value) msg->key.propagate_to_parent = true; #if 0 - printf("%i: %i %i [%c]\n", type, msg->key.scancode, - msg->key.ascii, msg->key.ascii); + printf("%s: %i %i [%c]\n", type == JM_KEYPRESSED ? "JM_KEYPRESSED": + "JM_KEYRELEASED", + msg->key.scancode, msg->key.ascii, msg->key.ascii); + fflush(stdout); #endif return msg; }