-rw-r--r-- | src/Makefile.am | 4 | ||||
-rw-r--r-- | src/controller/exp004mouse.c | 55 | ||||
-rw-r--r-- | src/controller/mousewheel.c | 45 | ||||
-rw-r--r-- | src/controller/mousewheel.h | 11 | ||||
-rw-r--r-- | src/controller/performzoom.c | 65 | ||||
-rw-r--r-- | src/controller/performzoom.h | 9 | ||||
-rw-r--r-- | src/view/exp004view.c | 4 |
7 files changed, 149 insertions, 44 deletions
diff --git a/src/controller/mousewheel.h b/src/controller/mousewheel.h new file mode 100644 index 0000000..a3944d0 --- a/dev/null +++ b/src/controller/mousewheel.h | |||
@@ -0,0 +1,11 @@ | |||
1 | #ifndef MOUSEWHEEL_H | ||
2 | #define MOUSEWHEEL_H | ||
3 | |||
4 | /* | ||
5 | * GLUT callback to be called whenever the scroll wheel is scrolled. | ||
6 | * Based on code from Ashwin at | ||
7 | * http://stackoverflow.com/questions/14378/using-the-mouse-scrollwheel-in-glut/14444. | ||
8 | */ | ||
9 | void mousewheel (int, int, int, int); | ||
10 | |||
11 | #endif // MOUSEWHEEL_H | ||