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/view/exp004view.c b/src/view/exp004view.c
index 92cb56e..434c016 100644
--- a/src/view/exp004view.c
+++ b/src/view/exp004view.c
@@ -2,10 +2,13 @@
#include "../controller/exp004mouse.h"
#include "../controller/exp004reshape.h"
#include "../controller/keyboard.h"
+#include "../controller/mousewheel.h"
#include "../db/dbconnect.h"
#include "exp004init.h"
#include "exp004state0.h"
#include "exp004view.h"
+#include <GL/freeglut.h>
+#include <GL/freeglut_ext.h>
#include <GL/glut.h>
void
@@ -45,6 +48,7 @@ exp004view (void)
glutDisplayFunc (exp004display);
glutKeyboardFunc (keyboard);
glutMouseFunc (exp004mouse);
+ glutMouseWheelFunc (mousewheel);
glutReshapeFunc (exp004reshape);
return;

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.