mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 07:20:34 +00:00
Try to prevent input driver from being set with Emscripten EGL context driver if HAVE_SDL2 is defined
This commit is contained in:
parent
2fa676416a
commit
83be6daa93
@ -228,13 +228,14 @@ static bool gfx_ctx_emscripten_bind_api(void *data,
|
|||||||
static void gfx_ctx_emscripten_input_driver(void *data,
|
static void gfx_ctx_emscripten_input_driver(void *data,
|
||||||
const input_driver_t **input, void **input_data)
|
const input_driver_t **input, void **input_data)
|
||||||
{
|
{
|
||||||
void *rwebinput = NULL;
|
|
||||||
|
|
||||||
(void)data;
|
(void)data;
|
||||||
|
|
||||||
*input = NULL;
|
*input = NULL;
|
||||||
|
*input_data = NULL;
|
||||||
|
|
||||||
rwebinput = input_rwebinput.init();
|
#ifndef HAVE_SDL2
|
||||||
|
{
|
||||||
|
void *rwebinput = input_rwebinput.init();
|
||||||
|
|
||||||
if (!rwebinput)
|
if (!rwebinput)
|
||||||
return;
|
return;
|
||||||
@ -242,6 +243,8 @@ static void gfx_ctx_emscripten_input_driver(void *data,
|
|||||||
*input = &input_rwebinput;
|
*input = &input_rwebinput;
|
||||||
*input_data = rwebinput;
|
*input_data = rwebinput;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
static bool gfx_ctx_emscripten_has_focus(void *data)
|
static bool gfx_ctx_emscripten_has_focus(void *data)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user