瀏覽代碼

have .scroll be 0 by default

pull/4637/head
ColleagueRiley 3 月之前
父節點
當前提交
e75de4ba49
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/platforms/rcore_desktop_rgfw.c

+ 2
- 2
src/platforms/rcore_desktop_rgfw.c 查看文件

@ -1014,7 +1014,7 @@ void PollInputEvents(void)
{ {
CORE.Input.Mouse.currentWheelMove.y = event->scroll; CORE.Input.Mouse.currentWheelMove.y = event->scroll;
break; break;
} } else CORE.Input.Mouse.currentWheelMove.y = 0;
int btn = event->button; int btn = event->button;
if (btn == RGFW_mouseLeft) btn = 1; if (btn == RGFW_mouseLeft) btn = 1;
@ -1032,7 +1032,7 @@ void PollInputEvents(void)
{ {
CORE.Input.Mouse.currentWheelMove.y = event->scroll; CORE.Input.Mouse.currentWheelMove.y = event->scroll;
break; break;
} } else CORE.Input.Mouse.currentWheelMove.y = 0;
int btn = event->button; int btn = event->button;
if (btn == RGFW_mouseLeft) btn = 1; if (btn == RGFW_mouseLeft) btn = 1;

||||||
x
 
000:0
Loading…
取消
儲存