Quellcode durchsuchen

Fix the fix cause I didn't test it

pull/4445/head
electrolys vor 2 Monaten
Ursprung
Commit
95657ee1cb
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. +5
    -1
      src/platforms/rcore_desktop_sdl.c

+ 5
- 1
src/platforms/rcore_desktop_sdl.c Datei anzeigen

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

Laden…
Abbrechen
Speichern