summaryrefslogtreecommitdiffstats
Unidiff
-rw-r--r--README2
-rw-r--r--TODO1
-rw-r--r--src/controller/actions/sel_save.sqc3
-rw-r--r--src/controller/callbacks/mouse.c10
-rw-r--r--src/model/data/base.sqc3
5 files changed, 12 insertions, 7 deletions
diff --git a/src/controller/callbacks/mouse.c b/src/controller/callbacks/mouse.c
index 5f5be43..5b1a794 100644
--- a/src/controller/callbacks/mouse.c
+++ b/src/controller/callbacks/mouse.c
@@ -20,12 +20,16 @@
20void20void
21mouse (int button, int state, int x, int y)21mouse (int button, int state, int x, int y)
22{22{
23 // Release left button.23 // Release right button.
24 if (button == GLUT_LEFT_BUTTON && state == GLUT_UP)24 if (button == GLUT_RIGHT_BUTTON && state == GLUT_UP)
25 {25 {
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;
28 }
2829
30 // Release left button.
31 if (button == GLUT_LEFT_BUTTON && state == GLUT_UP)
32 {
29 if (S.selection.active &&33 if (S.selection.active &&
30 S.selection.purpose == ZOOM &&34 S.selection.purpose == ZOOM &&
31 glutGetModifiers () == GLUT_ACTIVE_CTRL)35 glutGetModifiers () == GLUT_ACTIVE_CTRL)
@@ -170,7 +174,7 @@ mouse (int button, int state, int x, int y)
170 }174 }
171175
172 // Pan.176 // Pan.
173 if (button == GLUT_LEFT_BUTTON &&177 if (button == GLUT_RIGHT_BUTTON &&
174 state == GLUT_DOWN && glutGetModifiers () != GLUT_ACTIVE_CTRL)178 state == GLUT_DOWN && glutGetModifiers () != GLUT_ACTIVE_CTRL)
175 {179 {
176 /*180 /*

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.