author | Don Pellegrino <don@drexel.edu> | 2009-06-16 23:26:44 (GMT) |
---|---|---|
committer | Don Pellegrino <don@drexel.edu> | 2009-06-16 23:26:44 (GMT) |
commit | 119f1ec5a99bafb30c20df3f5723e743217b6238 (patch) (unidiff) | |
tree | d62703586dd4e6e3093a53ad9d8fe49cd269b179 | |
parent | e6656c361af46c47784f234af8289f81f2017c89 (diff) | |
download | exp005-119f1ec5a99bafb30c20df3f5723e743217b6238.zip exp005-119f1ec5a99bafb30c20df3f5723e743217b6238.tar.gz exp005-119f1ec5a99bafb30c20df3f5723e743217b6238.tar.bz2 |
Added zoom command.
-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; |