Use precise y-direction scroll values in SDL

This commit is contained in:
ndren 2023-07-03 21:46:08 +01:00 committed by GitHub
parent 041377c24c
commit b249e4523d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -555,7 +555,7 @@ bool CIrrDeviceSDL::run()
irrevent.EventType = irr::EET_MOUSE_INPUT_EVENT;
irrevent.MouseInput.Event = irr::EMIE_MOUSE_WHEEL;
irrevent.MouseInput.Wheel = static_cast<float>(SDL_event.wheel.y);
irrevent.MouseInput.Wheel = SDL_event.wheel.preciseY;
irrevent.MouseInput.Shift = (keymod & KMOD_SHIFT) != 0;
irrevent.MouseInput.Control = (keymod & KMOD_CTRL) != 0;
irrevent.MouseInput.X = MouseX;