Browse Source

Reviewed MouseScrollCallback() #2371

pull/2437/head
Ray 2 years ago
parent
commit
e1ee4b1466
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/rcore.c

+ 2
- 2
src/rcore.c View File

@ -5404,10 +5404,10 @@ static void MouseCursorPosCallback(GLFWwindow *window, double x, double y)
#endif
}
// GLFW3 Srolling Callback, runs on mouse wheel
// GLFW3 Scrolling Callback, runs on mouse wheel
static void MouseScrollCallback(GLFWwindow *window, double xoffset, double yoffset)
{
if (xoffset != 0.0) CORE.Input.Mouse.currentWheelMove = (float)xoffset;
if (p">(float)xoffset != 0.0f) CORE.Input.Mouse.currentWheelMove = (float)xoffset;
else CORE.Input.Mouse.currentWheelMove = (float)yoffset;
}

||||||
x
 
000:0
Loading…
Cancel
Save