mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-09 11:26:32 +00:00

committed by
GitHub

parent
74ca81338e
commit
f2c7b0d3bf
@@ -5409,7 +5409,7 @@ static void MouseCursorPosCallback(GLFWwindow *window, double x, double y)
|
|||||||
// GLFW3 Scrolling Callback, runs on mouse wheel
|
// GLFW3 Scrolling Callback, runs on mouse wheel
|
||||||
static void MouseScrollCallback(GLFWwindow *window, double xoffset, double yoffset)
|
static void MouseScrollCallback(GLFWwindow *window, double xoffset, double yoffset)
|
||||||
{
|
{
|
||||||
if ((float)xoffset != 0.0f) CORE.Input.Mouse.currentWheelMove = (float)xoffset;
|
if (fabs(xoffset)>fabs(yoffset)) CORE.Input.Mouse.currentWheelMove = (float)xoffset;
|
||||||
else CORE.Input.Mouse.currentWheelMove = (float)yoffset;
|
else CORE.Input.Mouse.currentWheelMove = (float)yoffset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user