mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-01 09:12:35 +00:00
Puti n call to input_keyboard_event when compiling without HAVE_XKBCOMMON
This commit is contained in:
parent
f4ea4bfdda
commit
5e99d163de
@ -14,11 +14,11 @@
|
||||
*/
|
||||
|
||||
#include "../input_keymaps.h"
|
||||
#include "../input_keyboard.h"
|
||||
#include "../../driver.h"
|
||||
|
||||
#include "keyboard_event_udev.h"
|
||||
|
||||
|
||||
#define UDEV_MAX_KEYS (KEY_MAX + 7) / 8
|
||||
|
||||
static uint8_t udev_key_state[UDEV_MAX_KEYS];
|
||||
@ -42,6 +42,10 @@ void udev_handle_keyboard(void *data,
|
||||
|
||||
#ifdef HAVE_XKBCOMMON
|
||||
handle_xkb(event->code, event->value);
|
||||
#else
|
||||
input_keyboard_event(event->value,
|
||||
input_keymaps_translate_keysym_to_rk(event->code),
|
||||
0, 0, RETRO_DEVICE_KEYBOARD);
|
||||
#endif
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user