mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-10-01 21:58:38 +00:00
macOS: mouse x,y changed to float in SDL3
This commit is contained in:
parent
7318176da0
commit
debb23461b
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ sc_mouse_capture_set_active(struct sc_mouse_capture *mc, bool capture) {
|
||||||
// Workaround for SDL bug on macOS:
|
// Workaround for SDL bug on macOS:
|
||||||
// <https://github.com/libsdl-org/SDL/issues/5340>
|
// <https://github.com/libsdl-org/SDL/issues/5340>
|
||||||
if (capture) {
|
if (capture) {
|
||||||
int mouse_x, mouse_y;
|
float mouse_x, mouse_y;
|
||||||
SDL_GetGlobalMouseState(&mouse_x, &mouse_y);
|
SDL_GetGlobalMouseState(&mouse_x, &mouse_y);
|
||||||
|
|
||||||
int x, y, w, h;
|
int x, y, w, h;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue