From: kub Date: Fri, 10 May 2024 21:22:01 +0000 (+0200) Subject: platform opendingux, add some keys (gkd mini, rs97) X-Git-Tag: v2.00~61 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb79e7baa8ad87276262ec42aaa1a6794694f317;p=picodrive.git platform opendingux, add some keys (gkd mini, rs97) --- 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"); } }