Try to prevent input driver from being set with Emscripten EGL context driver if HAVE_SDL2 is defined

This commit is contained in:
twinaphex 2016-09-24 05:56:39 +02:00
parent 2fa676416a
commit 83be6daa93

View File

@ -228,19 +228,22 @@ static bool gfx_ctx_emscripten_bind_api(void *data,
static void gfx_ctx_emscripten_input_driver(void *data,
const input_driver_t **input, void **input_data)
{
void *rwebinput = NULL;
(void)data;
*input = NULL;
*input = NULL;
*input_data = NULL;
rwebinput = input_rwebinput.init();
#ifndef HAVE_SDL2
{
void *rwebinput = input_rwebinput.init();
if (!rwebinput)
return;
if (!rwebinput)
return;
*input = &input_rwebinput;
*input_data = rwebinput;
*input = &input_rwebinput;
*input_data = rwebinput;
}
#endif
}
static bool gfx_ctx_emscripten_has_focus(void *data)