Pārlūkot izejas kodu

Fix relative mouse data being really inconsistent in SDL

pull/4445/head
electrolys pirms 2 mēnešiem
vecāks
revīzija
30f17a0ed4
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      src/platforms/rcore_desktop_sdl.c

+ 1
- 1
src/platforms/rcore_desktop_sdl.c Parādīt failu

@ -1025,7 +1025,7 @@ void PollInputEvents(void)
CORE.Input.Mouse.currentWheelMove.y = 0;
// Register previous mouse position
if (platform.cursorRelative) CORE.Input.Mouse.currentPosition = (Vector2){ 0.0f, 0.0f };
if (platform.cursorRelative) CORE.Input.Mouse.previousPosition = (Vector2){ 0.0f, 0.0f };
else CORE.Input.Mouse.previousPosition = CORE.Input.Mouse.currentPosition;
// Reset last gamepad button/axis registered state

Notiek ielāde…
Atcelt
Saglabāt