mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
Merge pull request #5021 from casdevel/udev
Fix duplicate characters when searching
This commit is contained in:
commit
a3c88fec74
@ -127,12 +127,6 @@ struct udev_input
|
||||
unsigned num_devices;
|
||||
};
|
||||
|
||||
#ifdef HAVE_XKBCOMMON
|
||||
int init_xkb(int fd, size_t size);
|
||||
void free_xkb(void);
|
||||
int handle_xkb(int code, int value);
|
||||
#endif
|
||||
|
||||
static uint8_t udev_key_state[UDEV_MAX_KEYS];
|
||||
|
||||
static void udev_handle_keyboard(void *data,
|
||||
@ -146,11 +140,6 @@ static void udev_handle_keyboard(void *data,
|
||||
else
|
||||
BIT_CLEAR(udev_key_state, event->code);
|
||||
|
||||
#ifdef HAVE_XKBCOMMON
|
||||
if (handle_xkb(event->code, event->value) == 0)
|
||||
return;
|
||||
#endif
|
||||
|
||||
input_keyboard_event(event->value,
|
||||
input_keymaps_translate_keysym_to_rk(event->code),
|
||||
0, 0, RETRO_DEVICE_KEYBOARD);
|
||||
@ -165,10 +154,6 @@ static void udev_input_kb_free(void)
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
#ifdef HAVE_XKBCOMMON
|
||||
free_xkb();
|
||||
#endif
|
||||
|
||||
for (i = 0; i < UDEV_MAX_KEYS; i++)
|
||||
udev_key_state[i] = 0;
|
||||
}
|
||||
@ -822,11 +807,6 @@ static void *udev_input_init(const char *joypad_driver)
|
||||
udev_monitor_enable_receiving(udev->monitor);
|
||||
}
|
||||
|
||||
#ifdef HAVE_XKBCOMMON
|
||||
if (init_xkb(-1, 0) == -1)
|
||||
goto error;
|
||||
#endif
|
||||
|
||||
if (!epoll_new(&udev->epfd))
|
||||
{
|
||||
RARCH_ERR("Failed to create epoll FD.\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user