Fixed mouse wheel reporting last value when not scrolling

This commit is contained in:
n00b
2024-12-15 12:55:46 -05:00
parent 39c5e4a9f2
commit 119e6f5bfe

View File

@@ -106,6 +106,9 @@ bool rc_update()
rc_inkey_val = 0;
rc_mwheelx = 0;
rc_mwheely = 0;
while ( !Close && SDL_PollEvent( &SDL_event ) )
{
// os::Printer::log("event: ", core::stringc((int)SDL_event.type).c_str(), ELL_INFORMATION); // just for debugging