mirror of
https://github.com/libretro/RetroArch
synced 2025-02-01 00:32:46 +00:00
fix menu toggle with keymapper active
This commit is contained in:
parent
5a4bd619ba
commit
7d9193555a
@ -30,6 +30,7 @@
|
||||
#include <compat/posix_string.h>
|
||||
#include <retro_miscellaneous.h>
|
||||
#include <libretro.h>
|
||||
#include "menu/menu_driver.h"
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "../config.h"
|
||||
@ -81,11 +82,12 @@ void input_mapper_poll(input_mapper_t *handle)
|
||||
int i;
|
||||
settings_t *settings = config_get_ptr();
|
||||
unsigned device = settings->uints.input_libretro_device[handle->port];
|
||||
bool menu_is_alive = menu_driver_is_alive();
|
||||
|
||||
device &= RETRO_DEVICE_MASK;
|
||||
|
||||
/* for now we only handle keyboard inputs */
|
||||
if (device != RETRO_DEVICE_KEYBOARD)
|
||||
if (device != RETRO_DEVICE_KEYBOARD || menu_is_alive)
|
||||
return;
|
||||
|
||||
memset(handle->keys, 0, sizeof(handle->keys));
|
||||
|
Loading…
x
Reference in New Issue
Block a user