summaryrefslogtreecommitdiffstats
Unidiff
-rw-r--r--src/Makefile.am4
-rw-r--r--src/controller/exp004mouse.c55
-rw-r--r--src/controller/mousewheel.c45
-rw-r--r--src/controller/mousewheel.h11
-rw-r--r--src/controller/performzoom.c65
-rw-r--r--src/controller/performzoom.h9
-rw-r--r--src/view/exp004view.c4
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 */
9void mousewheel (int, int, int, int);
10
11#endif // MOUSEWHEEL_H

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.