Skip to content

Commit

Permalink
fix errenous delta when warping
Browse files Browse the repository at this point in the history
  • Loading branch information
expikr committed Nov 14, 2024
1 parent 20cd429 commit d551025
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/events/SDL_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -851,8 +851,8 @@ static void SDL_PrivateSendMouseMotion(Uint64 timestamp, SDL_Window *window, SDL
event.motion.state = SDL_GetMouseButtonState(mouse, mouseID, true);
event.motion.x = mouse->x;
event.motion.y = mouse->y;
event.motion.xrel = xrel;
event.motion.yrel = yrel;
event.motion.xrel = !relative ? 0.0f : xrel;
event.motion.yrel = !relative ? 0.0f : yrel;
SDL_PushEvent(&event);
}
if (relative) {
Expand Down

0 comments on commit d551025

Please sign in to comment.