void VehicleSim::scroll_callback(GLFWwindow* window, double x, double y) { // Get class instance VehicleSim* app = (VehicleSim*)glfwGetWindowUserPointer(window); Gwen::Controls::Canvas* canvas = app->_guiCanvas; // Update GUI canvas->InputMouseWheel((int)(y * 60.0)); // Update app //app->_orthoScale -= y; //if (app->_orthoScale <= VEHICLESIM_MIN_SCALE) // app->_orthoScale = VEHICLESIM_MIN_SCALE; // Update tools std::vector<Tool*>& tools = app->_tools; for (auto it = tools.begin(); it != tools.end(); ++it) { (*it)->scroll_base(x, y); } }