mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Merge pull request #1581 from fr500/master
Prevent mouse/touch from registering if overlays are enabled
This commit is contained in:
commit
e66d0c4f9d
@ -162,7 +162,7 @@ static int pointer_post_iterate(menu_file_list_cbs_t *cbs, const char *path,
|
||||
if (!menu)
|
||||
return -1;
|
||||
|
||||
if (!settings->menu.pointer.enable)
|
||||
if (!settings->menu.pointer.enable || settings->input.overlay_enable)
|
||||
return 0;
|
||||
|
||||
#if defined(HAVE_XMB)
|
||||
@ -227,7 +227,7 @@ static int mouse_post_iterate(menu_file_list_cbs_t *cbs, const char *path,
|
||||
if (!menu)
|
||||
return -1;
|
||||
|
||||
if (!settings->menu.mouse.enable)
|
||||
if (!settings->menu.mouse.enable || settings->input.overlay_enable)
|
||||
{
|
||||
menu->mouse.wheeldown = false;
|
||||
menu->mouse.wheelup = false;
|
||||
|
@ -475,7 +475,7 @@ static int menu_input_mouse(unsigned *action)
|
||||
if (!menu)
|
||||
return -1;
|
||||
|
||||
if (!settings->menu.mouse.enable)
|
||||
if (!settings->menu.mouse.enable || settings->input.overlay_enable)
|
||||
{
|
||||
menu->mouse.left = 0;
|
||||
menu->mouse.right = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user