summaryrefslogtreecommitdiffstats
Side-by-side diff
-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 @@
+#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

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.