Skip to content

Commit

Permalink
platform opendingux, add some keys (gkd mini, rs97)
Browse files Browse the repository at this point in the history
  • Loading branch information
irixxxx committed May 12, 2024
1 parent 695e6de commit fb79e7b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions platform/opendingux/inputmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,19 @@ 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",
/* miyoo */
[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;

Expand Down Expand Up @@ -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");
}
}

0 comments on commit fb79e7b

Please sign in to comment.