1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-03 00:38:44 +00:00

Fix webOS build and run (#13480)

This commit is contained in:
Dystopian 2022-01-12 10:12:34 +04:00 committed by GitHub
parent f4831809f7
commit 2095fc53f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 2 deletions

View File

@ -15,7 +15,7 @@ PACKAGE_VERSION := $(patsubst "%",%,$(RARCH_VERSION))
DEBUG ?= 0
HAVE_SCREENSHOTS = 0
HAVE_SCREENSHOTS = 1
HAVE_REWIND = 1
HAVE_7ZIP = 1
HAVE_ACCESSIBILITY = 1
@ -97,7 +97,7 @@ HAVE_SHADERPIPELINE = 1
HAVE_STB_FONT = 1
HAVE_STB_IMAGE = 1
HAVE_STB_VORBIS = 1
HAVE_STDIN_CMD = 0
HAVE_STDIN_CMD = 1
HAVE_STRCASESTR = 1
HAVE_THREADS = 1
HAVE_UDEV = 0

View File

@ -87,7 +87,9 @@ static void sdl_ctx_destroy(void *data)
return;
sdl_ctx_destroy_resources(sdl);
#ifndef WEBOS
if (sdl->subsystem_inited)
#endif
SDL_QuitSubSystem(SDL_INIT_VIDEO);
free(sdl);
}

View File

@ -101,6 +101,14 @@ static bool sdl_key_pressed(int key)
}
if (key == RETROK_F1 && keymap[SDL_WEBOS_SCANCODE_EXIT])
return true;
if (key == RETROK_x && keymap[SDL_WEBOS_SCANCODE_RED])
return true;
if (key == RETROK_z && keymap[SDL_WEBOS_SCANCODE_GREEN])
return true;
if (key == RETROK_s && keymap[SDL_WEBOS_SCANCODE_YELLOW])
return true;
if (key == RETROK_a && keymap[SDL_WEBOS_SCANCODE_BLUE])
return true;
#endif
if (sym >= (unsigned)num_keys)