27 files changed, 179 insertions, 549 deletions
diff --git a/src/controller/callbacks/mouse_motion.c b/src/controller/callbacks/mouse_motion.c new file mode 100644 index 0000000..3279773 --- a/dev/null +++ b/src/controller/callbacks/mouse_motion.c | |||
@@ -0,0 +1,19 @@ | |||
1 | #include "mouse_motion.h" | ||
2 | #include "../../view/state0.h" | ||
3 | #include "../actions/pan.h" | ||
4 | #include <GL/glut.h> | ||
5 | |||
6 | #define S state0 | ||
7 | |||
8 | void | ||
9 | mouse_motion (int x, int y) | ||
10 | { | ||
11 | if (S.pan.active) | ||
12 | { | ||
13 | pan (S.pan.begin[0], S.pan.begin[1], x, y); | ||
14 | S.pan.begin[0] = x; | ||
15 | S.pan.begin[1] = y; | ||
16 | } | ||
17 | |||
18 | return; | ||
19 | } | ||