[LIBNX] Initialize HID anyway, might fix randomly having no controls

This commit is contained in:
M4xw 2018-10-27 19:27:24 +02:00
parent c00d3e809a
commit efb71fc38e

View File

@ -137,6 +137,10 @@ static void switch_input_free_input(void *data)
sw->joypad->destroy();
free(sw);
#ifdef HAVE_LIBNX
hidExit();
#endif
}
static void* switch_input_init(const char *joypad_driver)
@ -145,6 +149,10 @@ static void* switch_input_init(const char *joypad_driver)
if (!sw)
return NULL;
#ifdef HAVE_LIBNX
hidInitialize();
#endif
sw->joypad = input_joypad_init_driver(joypad_driver, sw);
#ifdef HAVE_LIBNX