From 119f1ec5a99bafb30c20df3f5723e743217b6238 Mon Sep 17 00:00:00 2001 From: Don Pellegrino Date: Tue, 16 Jun 2009 23:26:44 +0000 Subject: Added zoom command. --- 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; -- cgit v0.8.3.1-22-g547a