-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/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; |