Skip to content

Commit

Permalink
have .scroll be 0 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Dec 24, 2024
1 parent a32a5b8 commit e75de4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platforms/rcore_desktop_rgfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ void PollInputEvents(void)
{
CORE.Input.Mouse.currentWheelMove.y = event->scroll;
break;
}
} else CORE.Input.Mouse.currentWheelMove.y = 0;

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

int btn = event->button;
if (btn == RGFW_mouseLeft) btn = 1;
Expand Down

0 comments on commit e75de4b

Please sign in to comment.