Made scrolling deltas floating point.

This commit is contained in:
Camilla Berglund
2012-03-28 21:54:09 +02:00
parent a8bcae8efa
commit 4ef9aec7e0
10 changed files with 18 additions and 27 deletions

View File

@@ -341,9 +341,9 @@ void mouse_position_callback(GLFWwindow window, int x, int y)
// Callback function for scroll events
//========================================================================
void scroll_callback(GLFWwindow window, int x, int y)
void scroll_callback(GLFWwindow window, double x, double y)
{
zoom += y / 4.f;
zoom += (float) y / 4.f;
if (zoom < 0)
zoom = 0;
}