mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-18 08:18:07 +00:00
Prevent mouse/touch if overlays are enabled to avoid conflicting inputs.
Users can still get locked out if they purposelly disable mouse/pointer and overlays and don't use a controller
This commit is contained in:
parent
5bffebd203
commit
d45593d578
@ -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…
Reference in New Issue
Block a user