[client] core: remove unnecessary warp and update of cursor location

As we now are using our own backends instead of SDL, there is no longer
any need to warp back to the center of the window when in autoCapture
mode. This breaks the SDL ds backend behaviour, however as SDL is
planned to be removed this is not an issue.
This commit is contained in:
Geoffrey McRae 2021-02-23 20:01:26 +11:00
parent 9ae53aca70
commit 78f4249496

View File

@ -479,11 +479,7 @@ void core_handleMouseNormal(double ex, double ey)
{
g_cursor.delta.x = 0;
g_cursor.delta.y = 0;
core_warpPointer(g_state.windowCX, g_state.windowCY, false);
}
g_cursor.guest.x = g_state.srcSize.x / 2;
g_cursor.guest.y = g_state.srcSize.y / 2;
}
else
{