-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 @@ +#ifndef MOUSEWHEEL_H +#define MOUSEWHEEL_H + +/* + * GLUT callback to be called whenever the scroll wheel is scrolled. + * Based on code from Ashwin at + * http://stackoverflow.com/questions/14378/using-the-mouse-scrollwheel-in-glut/14444. + */ +void mousewheel (int, int, int, int); + +#endif // MOUSEWHEEL_H |