Source

gltut / framework / MousePole.cpp

Diff from to

File framework/MousePole.cpp

 						this->BeginDragRotate(position, MousePole::RM_DUAL_AXIS_ROTATE);
 				}
 			}
+
+#ifdef LOAD_X11
+            //Linux Mouse wheel support			
+	        if(button == 3)
+		        this->MoveCloser(!(glutGetModifiers() & GLUT_ACTIVE_SHIFT));
+	        if(button == 4)
+		        this->MoveAway(!(glutGetModifiers() & GLUT_ACTIVE_SHIFT));
+#endif
 		}
 		else
 		{