-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | src/controller/actions/sel_save.sqc | 3 | ||||
-rw-r--r-- | src/controller/callbacks/mouse.c | 10 | ||||
-rw-r--r-- | src/model/data/base.sqc | 3 |
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 @@ | |||
20 | void | 20 | void |
21 | mouse (int button, int state, int x, int y) | 21 | mouse (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 | } | ||
28 | 29 | ||
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 | } |
171 | 175 | ||
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 | /* |