summaryrefslogtreecommitdiffstats
authorDon Pellegrino <don@drexel.edu>2009-06-16 23:26:44 (GMT)
committer Don Pellegrino <don@drexel.edu>2009-06-16 23:26:44 (GMT)
commit119f1ec5a99bafb30c20df3f5723e743217b6238 (patch) (side-by-side diff)
treed62703586dd4e6e3093a53ad9d8fe49cd269b179
parente6656c361af46c47784f234af8289f81f2017c89 (diff)
downloadexp005-119f1ec5a99bafb30c20df3f5723e743217b6238.zip
exp005-119f1ec5a99bafb30c20df3f5723e743217b6238.tar.gz
exp005-119f1ec5a99bafb30c20df3f5723e743217b6238.tar.bz2
Added zoom command.
-rw-r--r--src/controller/keyboard.c13
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;

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.