diff options
Diffstat (limited to '02-wolfautomata/src')
-rw-r--r-- | 02-wolfautomata/src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/02-wolfautomata/src/main.c b/02-wolfautomata/src/main.c index ded18d3..889da85 100644 --- a/02-wolfautomata/src/main.c +++ b/02-wolfautomata/src/main.c @@ -96,6 +96,9 @@ reset: case ALLEGRO_EVENT_KEY_DOWN: switch(e.keyboard.keycode) { + case ALLEGRO_KEY_Q: + goto done; + case ALLEGRO_KEY_UP: automaton += 10; printf("%d\n", automaton); |