aboutsummaryrefslogtreecommitdiffstats
path: root/02-wolfautomata/src
diff options
context:
space:
mode:
authorkatherine <ageha@airen-no-jikken.icu>2021-02-13 00:27:16 -0700
committerkatherine <ageha@airen-no-jikken.icu>2021-02-13 00:27:16 -0700
commit2ba834f1656faa1f7e8437f303caba5166a3b9eb (patch)
tree04c2a3d36fb29a8f631c6ea3acd2f05cc44ae24b /02-wolfautomata/src
parent63e370da9e6bba79c5b561b6788ed5d6cf0b083e (diff)
downloadallegro-sketches-2ba834f1656faa1f7e8437f303caba5166a3b9eb.tar.gz
better input
Diffstat (limited to '02-wolfautomata/src')
-rw-r--r--02-wolfautomata/src/main.c3
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);