Minor changes in jmessage to debug JM_KEYPRESSED/RELEASED messages.

This commit is contained in:
David Capello 2010-11-01 21:05:25 -03:00
parent e55b757aad
commit 177f089e9a

View File

@ -58,8 +58,10 @@ JMessage jmessage_new_key_related(int type, int readkey_value)
msg->key.propagate_to_parent = true; msg->key.propagate_to_parent = true;
#if 0 #if 0
printf("%i: %i %i [%c]\n", type, msg->key.scancode, printf("%s: %i %i [%c]\n", type == JM_KEYPRESSED ? "JM_KEYPRESSED":
msg->key.ascii, msg->key.ascii); "JM_KEYRELEASED",
msg->key.scancode, msg->key.ascii, msg->key.ascii);
fflush(stdout);
#endif #endif
return msg; return msg;
} }