I’m added RetroArch latest git version in my Enigma2, and for now is working good. I’m maked small changes in RetroArch for use the STB Remote Controller to navegate MENU, but of some reason the RetroArch is receiving input as a double input (example: I press DOWN, and in RetroArch is a double DOWN).
I’m not have this problem with a PC Keyboard or a Xbox One Controller. Any ideia for solve this?
RetroArch changes:
diff --git a/input/drivers/udev_input.c b/input/drivers/udev_input.c
old mode 100644
new mode 100755
index ca947d9243..d0a311da7a
--- a/input/drivers/udev_input.c
+++ b/input/drivers/udev_input.c
@@ -164,10 +164,21 @@ static unsigned input_unify_ev_key_code(unsigned code)
so unify remote control keysyms to keyboard keysyms here. */
switch (code)
{
- case KEY_OK:
- return KEY_ENTER;
case KEY_BACK:
+ case KEY_EXIT:
return KEY_BACKSPACE;
+ case KEY_MENU:
+ return KEY_F1;
+ case KEY_MUTE:
+ return KEY_F9;
+ case KEY_OK:
+ return KEY_ENTER;
+ case KEY_POWER:
+ return KEY_ESC;
+ case KEY_VOLUMEDOWN:
+ return KEY_KPMINUS;
+ case KEY_VOLUMEUP:
+ return KEY_KPPLUS;
default:
return code;
}