From fb79e7baa8ad87276262ec42aaa1a6794694f317 Mon Sep 17 00:00:00 2001 From: kub Date: Fri, 10 May 2024 23:22:01 +0200 Subject: [PATCH] platform opendingux, add some keys (gkd mini, rs97) --- platform/opendingux/inputmap.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/platform/opendingux/inputmap.c b/platform/opendingux/inputmap.c index 8df598d6..e8eace45 100644 --- a/platform/opendingux/inputmap.c +++ b/platform/opendingux/inputmap.c @@ -78,6 +78,9 @@ const char * _in_sdl_key_names[SDLK_LAST] = { [SDLK_KP_DIVIDE] = "L3", [SDLK_KP_PERIOD] = "R3", [SDLK_HOME] = "POWER", + /* gkd (mini) */ + /*[SDLK_HOME] = "MENU",*/ + [SDLK_END] = "EXIT", /* gcw0 */ [SDLK_POWER] = "POWER", [SDLK_PAUSE] = "LOCK", @@ -85,6 +88,9 @@ const char * _in_sdl_key_names[SDLK_LAST] = { [SDLK_RALT] = "L2", [SDLK_RSHIFT] = "R2", [SDLK_RCTRL] = "RESET", + /* retrofw */ + [SDLK_LEFTBRACKET] = "SETUP", /* actually brightness setting */ + /*[SDLK_END] = "POWER",*/ }; const char * const *in_sdl_key_names = _in_sdl_key_names; @@ -130,5 +136,6 @@ void plat_target_setup_input(void) } else if (strcmp(plat_device, "retrofw") == 0 || strcmp(plat_device, "dingux") == 0) { /* single L/R keys */ nameset(SDLK_TAB, "L"); nameset(SDLK_BACKSPACE, "R"); + nameset(SDLK_END, "POWER"); } } -- 2.39.5