mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
udev: Disable the mouse when the window has lost focus. (#7851)
Fixes https://github.com/libretro/RetroArch/issues/5520 v2: Move check to udev_handle_mouse(). v3: Change check to udev_get_mouse to fix issue reported by RobLoach.
This commit is contained in:
parent
85b560e76b
commit
2b0838ac02
@ -225,7 +225,7 @@ static udev_input_mouse_t *udev_get_mouse(struct udev_input *udev, unsigned port
|
||||
settings_t *settings = config_get_ptr();
|
||||
udev_input_mouse_t *mouse = NULL;
|
||||
|
||||
if (port >= MAX_USERS)
|
||||
if (port >= MAX_USERS || !video_driver_cb_has_focus())
|
||||
return NULL;
|
||||
|
||||
for (i = 0; i < udev->num_devices; ++i)
|
||||
|
Loading…
x
Reference in New Issue
Block a user