-rw-r--r-- | src/controller/keyboard.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/controller/keyboard.c b/src/controller/keyboard.c index c6e3c48..333e2d4 100644 --- a/src/controller/keyboard.c +++ b/src/controller/keyboard.c | |||
@@ -1,6 +1,9 @@ | |||
1 | #include "keyboard.h" | 1 | #include "keyboard.h" |
2 | #include "clear_selection.h" | 2 | #include "clear_selection.h" |
3 | #include "selection_from_db.h" | 3 | #include "selection_from_db.h" |
4 | #include "../view/exp004state0.h" | ||
5 | |||
6 | #define S exp004state0 | ||
4 | 7 | ||
5 | void | 8 | void |
6 | keyboard (unsigned char key, int x, int y) | 9 | keyboard (unsigned char key, int x, int y) |
@@ -22,6 +25,16 @@ keyboard (unsigned char key, int x, int y) | |||
22 | */ | 25 | */ |
23 | selection_from_db (); | 26 | selection_from_db (); |
24 | break; | 27 | break; |
28 | |||
29 | case 'z': | ||
30 | /* | ||
31 | * Toggle zoom mode on and off. | ||
32 | */ | ||
33 | if (S.zoom) | ||
34 | S.zoom = false; | ||
35 | else | ||
36 | S.zoom = true; | ||
37 | break; | ||
25 | } | 38 | } |
26 | 39 | ||
27 | return; | 40 | return; |