mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
More guards for disabling pointer support when overlay is active
This commit is contained in:
parent
59ed7f6b37
commit
706da9e1f0
@ -162,7 +162,7 @@ static int pointer_post_iterate(menu_file_list_cbs_t *cbs, const char *path,
|
|||||||
if (!menu)
|
if (!menu)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (!settings->menu.pointer.enable || settings->input.overlay_enable)
|
if (!settings->menu.pointer.enable || (settings->input.overlay_enable && driver && driver->overlay))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
#if defined(HAVE_XMB)
|
#if defined(HAVE_XMB)
|
||||||
@ -221,13 +221,14 @@ static int pointer_post_iterate(menu_file_list_cbs_t *cbs, const char *path,
|
|||||||
static int mouse_post_iterate(menu_file_list_cbs_t *cbs, const char *path,
|
static int mouse_post_iterate(menu_file_list_cbs_t *cbs, const char *path,
|
||||||
const char *label, unsigned type, unsigned action)
|
const char *label, unsigned type, unsigned action)
|
||||||
{
|
{
|
||||||
|
driver_t *driver = driver_get_ptr();
|
||||||
menu_handle_t *menu = menu_driver_get_ptr();
|
menu_handle_t *menu = menu_driver_get_ptr();
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
if (!menu)
|
if (!menu)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (!settings->menu.mouse.enable || settings->input.overlay_enable)
|
if (!settings->menu.mouse.enable || (settings->input.overlay_enable && driver && driver->overlay))
|
||||||
{
|
{
|
||||||
menu->mouse.wheeldown = false;
|
menu->mouse.wheeldown = false;
|
||||||
menu->mouse.wheelup = false;
|
menu->mouse.wheelup = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user