mirror of
https://github.com/raysan5/raylib.git
synced 2026-05-08 23:02:03 +00:00
SDL: Use precise mouse wheel values (#5830)
This commit is contained in:
@@ -1675,8 +1675,13 @@ void PollInputEvents(void)
|
||||
} break;
|
||||
case SDL_MOUSEWHEEL:
|
||||
{
|
||||
CORE.Input.Mouse.currentWheelMove.x = (float)event.wheel.x;
|
||||
CORE.Input.Mouse.currentWheelMove.y = (float)event.wheel.y;
|
||||
#if defined(USING_VERSION_SDL3)
|
||||
CORE.Input.Mouse.currentWheelMove.x = event.wheel.x;
|
||||
CORE.Input.Mouse.currentWheelMove.y = event.wheel.y;
|
||||
#else
|
||||
CORE.Input.Mouse.currentWheelMove.x = event.wheel.preciseX;
|
||||
CORE.Input.Mouse.currentWheelMove.y = event.wheel.preciseY;
|
||||
#endif
|
||||
} break;
|
||||
case SDL_MOUSEMOTION:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user