mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-03-23 21:55:12 +00:00
Fixed relative mouse mode using warping after 82793ac279
This commit is contained in:
parent
a1fabca162
commit
88e9f7765c
|
@ -359,7 +359,11 @@ SDL_PrivateSendMouseMotion(SDL_Window * window, SDL_MouseID mouseID, int relativ
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (window && (window->flags & SDL_WINDOW_INPUT_FOCUS) != 0) {
|
if (window && (window->flags & SDL_WINDOW_INPUT_FOCUS) != 0) {
|
||||||
SDL_WarpMouseInWindow(window, center_x, center_y);
|
if (mouse->WarpMouse) {
|
||||||
|
mouse->WarpMouse(window, center_x, center_y);
|
||||||
|
} else {
|
||||||
|
SDL_PrivateSendMouseMotion(window, mouseID, 0, center_x, center_y);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue