summaryrefslogtreecommitdiffstats
authorDon Pellegrino <don@coffee.donpellegrino.com>2009-08-17 23:38:54 (GMT)
committer Don Pellegrino <don@coffee.donpellegrino.com>2009-08-17 23:38:54 (GMT)
commit0764c52f3f9c8d6b59fd8a5d70634f1544c22a6c (patch) (unidiff)
tree9e4759a0d26e70e749f0951a64f014c3e441665c
parent5c300e702d7f1944417004ddcb0a6b15f107b5e5 (diff)
downloadexp005-0764c52f3f9c8d6b59fd8a5d70634f1544c22a6c.zip
exp005-0764c52f3f9c8d6b59fd8a5d70634f1544c22a6c.tar.gz
exp005-0764c52f3f9c8d6b59fd8a5d70634f1544c22a6c.tar.bz2
Modified to use CTRL modifier for zoom selections as well.
-rw-r--r--src/controller/callbacks/mouse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/controller/callbacks/mouse.c b/src/controller/callbacks/mouse.c
index f594c23..f901476 100644
--- a/src/controller/callbacks/mouse.c
+++ b/src/controller/callbacks/mouse.c
@@ -26,7 +26,9 @@ mouse (int button, int state, int x, int y)
26 // Deactive a panning event if one was happening.26 // Deactive a panning event if one was happening.
27 S.pan.active = false;27 S.pan.active = false;
2828
29 if (S.selection.active && S.selection.purpose == ZOOM)29 if (S.selection.active &&
30 S.selection.purpose == ZOOM &&
31 glutGetModifiers () == GLUT_ACTIVE_CTRL)
30 {32 {
31 /*33 /*
32 * NOOP if the mouse was not moved.34 * NOOP if the mouse was not moved.

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.