diff options
author | katherine <ageha@airen-no-jikken.icu> | 2021-02-13 00:27:16 -0700 |
---|---|---|
committer | katherine <ageha@airen-no-jikken.icu> | 2021-02-13 00:27:16 -0700 |
commit | 2ba834f1656faa1f7e8437f303caba5166a3b9eb (patch) | |
tree | 04c2a3d36fb29a8f631c6ea3acd2f05cc44ae24b /01-rwalk/src | |
parent | 63e370da9e6bba79c5b561b6788ed5d6cf0b083e (diff) | |
download | allegro-sketches-2ba834f1656faa1f7e8437f303caba5166a3b9eb.tar.gz |
better input
Diffstat (limited to '01-rwalk/src')
-rw-r--r-- | 01-rwalk/src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/01-rwalk/src/main.c b/01-rwalk/src/main.c index 98ede82..3a3c81f 100644 --- a/01-rwalk/src/main.c +++ b/01-rwalk/src/main.c @@ -92,6 +92,9 @@ int main(int argc, char **argv) case ALLEGRO_EVENT_KEY_DOWN: switch(e.keyboard.keycode) { + case ALLEGRO_KEY_Q: + goto done; + case ALLEGRO_KEY_1: setting = 0; puts("1"); |