Skip to content

Commit

Permalink
added name for webOS scancodes
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Feb 22, 2024
1 parent b18d702 commit fa7392c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/video/wayland/SDL_waylandkeyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@ int Wayland_InitKeyboard(_THIS)
#endif
SDL_SetScancodeName(SDL_SCANCODE_APPLICATION, "Menu");

#ifdef SDL_VIDEO_DRIVER_WAYLAND_WEBOS
SDL_SetScancodeName(SDL_SCANCODE_WEBOS_CH_UP, "ChannelUp");
SDL_SetScancodeName(SDL_SCANCODE_WEBOS_CH_DOWN, "ChannelDown");
SDL_SetScancodeName(SDL_SCANCODE_WEBOS_BACK, "Back");
SDL_SetScancodeName(SDL_SCANCODE_WEBOS_CURSOR_SHOW, "CursorShow");
SDL_SetScancodeName(SDL_SCANCODE_WEBOS_CURSOR_HIDE, "CursorHide");
SDL_SetScancodeName(SDL_SCANCODE_WEBOS_RED, "Red");
SDL_SetScancodeName(SDL_SCANCODE_WEBOS_GREEN, "Green");
SDL_SetScancodeName(SDL_SCANCODE_WEBOS_YELLOW, "Yellow");
SDL_SetScancodeName(SDL_SCANCODE_WEBOS_BLUE, "Blue");
SDL_SetScancodeName(SDL_SCANCODE_WEBOS_EXIT, "Exit");
#endif

return 0;
}

Expand Down

0 comments on commit fa7392c

Please sign in to comment.