mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-14 17:00:39 +00:00
SDL2: do not use silly math in rel mode
This commit is contained in:
parent
70ce9421e4
commit
246e0c21be
1 changed files with 6 additions and 1 deletions
|
@ -749,7 +749,12 @@ static void Impl_HandleMouseMotionEvent(SDL_MouseMotionEvent evt)
|
|||
return;
|
||||
}
|
||||
|
||||
if ((evt.x == realwidth/2) && (evt.y == realheight/2))
|
||||
if (!wrapmouseok)
|
||||
{
|
||||
event.data2 = evt.xrel;
|
||||
event.data3 = evt.yrel;
|
||||
}
|
||||
else if ((evt.x == realwidth/2) && (evt.y == realheight/2))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue