mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 05:43:34 +00:00
Remove duplicate keyboard handling
This commit is contained in:
parent
85058fbe5c
commit
1911aadc19
@ -130,7 +130,6 @@ struct udev_input
|
|||||||
#ifdef HAVE_XKBCOMMON
|
#ifdef HAVE_XKBCOMMON
|
||||||
int init_xkb(int fd, size_t size);
|
int init_xkb(int fd, size_t size);
|
||||||
void free_xkb(void);
|
void free_xkb(void);
|
||||||
int handle_xkb(int code, int value);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static uint8_t udev_key_state[UDEV_MAX_KEYS];
|
static uint8_t udev_key_state[UDEV_MAX_KEYS];
|
||||||
@ -146,11 +145,6 @@ static void udev_handle_keyboard(void *data,
|
|||||||
else
|
else
|
||||||
BIT_CLEAR(udev_key_state, event->code);
|
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_keyboard_event(event->value,
|
||||||
input_keymaps_translate_keysym_to_rk(event->code),
|
input_keymaps_translate_keysym_to_rk(event->code),
|
||||||
0, 0, RETRO_DEVICE_KEYBOARD);
|
0, 0, RETRO_DEVICE_KEYBOARD);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user