debug keycode mode

This commit is contained in:
Sebastian Krzyszkowiak 2012-05-01 23:19:34 +02:00
parent b57f20ac7d
commit 81e13b8d34

View file

@ -407,6 +407,7 @@ int main(int argc, char **argv){
break; break;
} }
else if (ev.type == ALLEGRO_EVENT_KEY_DOWN) { else if (ev.type == ALLEGRO_EVENT_KEY_DOWN) {
PrintConsole(&game, "KEYCODE: %s", al_keycode_to_name(ev.keyboard.keycode));
if ((ev.type == ALLEGRO_EVENT_KEY_DOWN) && (ev.keyboard.keycode == ALLEGRO_KEY_TILDE)) { if ((ev.type == ALLEGRO_EVENT_KEY_DOWN) && (ev.keyboard.keycode == ALLEGRO_KEY_TILDE)) {
game.showconsole = !game.showconsole; game.showconsole = !game.showconsole;
} }