浏览代码

REVIEWED: Support mouse wheel on x-axis #1948

pull/1954/head
raysan5 3 年前
父节点
当前提交
7c1889c282
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      src/core.c

+ 2
- 1
src/core.c 查看文件

@ -5059,7 +5059,8 @@ static void MouseCursorPosCallback(GLFWwindow *window, double x, double y)
// GLFW3 Srolling Callback, runs on mouse wheel
static void MouseScrollCallback(GLFWwindow *window, double xoffset, double yoffset)
{
CORE.Input.Mouse.currentWheelMove = (float)yoffset;
if (xoffset != 0.0) CORE.Input.Mouse.currentWheelMove = (float)xoffset;
else CORE.Input.Mouse.currentWheelMove = (float)yoffset;
}
// GLFW3 CursorEnter Callback, when cursor enters the window

正在加载...
取消
保存