Wrapping some debug output in an #ifdef DEBUG
This commit is contained in:
parent
6146163d26
commit
a5ba984e9a
1 changed files with 2 additions and 1 deletions
|
|
@ -1999,6 +1999,7 @@ static void mainloop(void)
|
||||||
key = event.key.keysym.sym;
|
key = event.key.keysym.sym;
|
||||||
mod = event.key.keysym.mod;
|
mod = event.key.keysym.mod;
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
// FIXME: debug junk
|
// FIXME: debug junk
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"key 0x%04x mod 0x%04x character 0x%04x %d <%c> is %sprintable, key_down 0x%x\n",
|
"key 0x%04x mod 0x%04x character 0x%04x %d <%c> is %sprintable, key_down 0x%x\n",
|
||||||
|
|
@ -2010,7 +2011,7 @@ static void mainloop(void)
|
||||||
iswprint(key_unicode)?"":"not ",
|
iswprint(key_unicode)?"":"not ",
|
||||||
(unsigned)key_down
|
(unsigned)key_down
|
||||||
);
|
);
|
||||||
|
#endif
|
||||||
|
|
||||||
handle_keymouse(key, SDL_KEYDOWN);
|
handle_keymouse(key, SDL_KEYDOWN);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue