have .scroll be 0 by default

This commit is contained in:
ColleagueRiley 2024-12-24 15:56:58 -05:00
parent a32a5b89fd
commit e75de4ba49

View File

@ -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;
@ -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;