fix scroll

This commit is contained in:
Igor Stepanov 2025-10-07 16:42:24 +03:00
parent f631382dbd
commit 13ae4ede72

View file

@ -177,6 +177,9 @@ void input_sdl::pollEvents() {
}
cursor = {event.motion.x, event.motion.y};
break;
case SDL_EVENT_MOUSE_WHEEL:
scroll += event.wheel.integer_y;
break;
case SDL_EVENT_WINDOW_RESIZED:
window.setSize({event.window.data1, event.window.data2});
break;