-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 @@ #include "keyboard.h" #include "clear_selection.h" #include "selection_from_db.h" +#include "../view/exp004state0.h" + +#define S exp004state0 void keyboard (unsigned char key, int x, int y) @@ -22,6 +25,16 @@ keyboard (unsigned char key, int x, int y) */ selection_from_db (); break; + + case 'z': + /* + * Toggle zoom mode on and off. + */ + if (S.zoom) + S.zoom = false; + else + S.zoom = true; + break; } return; |