diff --git a/Makefile.webos b/Makefile.webos index 4e155eb301..dd9f9be08c 100644 --- a/Makefile.webos +++ b/Makefile.webos @@ -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 diff --git a/gfx/drivers_context/sdl_gl_ctx.c b/gfx/drivers_context/sdl_gl_ctx.c index 96988b55f6..4c29fcb41a 100644 --- a/gfx/drivers_context/sdl_gl_ctx.c +++ b/gfx/drivers_context/sdl_gl_ctx.c @@ -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); } diff --git a/input/drivers/sdl_input.c b/input/drivers/sdl_input.c index 579e23e8d4..c4f7c9a4b1 100644 --- a/input/drivers/sdl_input.c +++ b/input/drivers/sdl_input.c @@ -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)