SDL: Use precise mouse wheel values (#5830)
This commit is contained in:
parent
d768dae402
commit
05c15c8ba7
|
|
@ -1675,8 +1675,13 @@ void PollInputEvents(void)
|
||||||
} break;
|
} break;
|
||||||
case SDL_MOUSEWHEEL:
|
case SDL_MOUSEWHEEL:
|
||||||
{
|
{
|
||||||
CORE.Input.Mouse.currentWheelMove.x = (float)event.wheel.x;
|
#if defined(USING_VERSION_SDL3)
|
||||||
CORE.Input.Mouse.currentWheelMove.y = (float)event.wheel.y;
|
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;
|
} break;
|
||||||
case SDL_MOUSEMOTION:
|
case SDL_MOUSEMOTION:
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user