mirror of
https://github.com/libretro/RetroArch
synced 2025-02-14 15:39:59 +00:00
Fix webOS build and run (#13480)
This commit is contained in:
parent
f4831809f7
commit
2095fc53f8
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user