mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-27 11:40:52 +00:00
SDL: y input is flipped
This commit is contained in:
parent
c25b2eb37f
commit
35404be1e0
1 changed files with 1 additions and 1 deletions
|
@ -624,7 +624,7 @@ static void Impl_HandleMouseMotionEvent(SDL_MouseMotionEvent evt)
|
||||||
if (SDL_GetRelativeMouseMode())
|
if (SDL_GetRelativeMouseMode())
|
||||||
{
|
{
|
||||||
event.data2 = evt.xrel;
|
event.data2 = evt.xrel;
|
||||||
event.data3 = evt.yrel;
|
event.data3 = -evt.yrel;
|
||||||
}
|
}
|
||||||
else if ((evt.x == realwidth/2) && (evt.y == realheight/2))
|
else if ((evt.x == realwidth/2) && (evt.y == realheight/2))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue