mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 00:32:49 +00:00
[LIBNX] Initialize HID anyway, might fix randomly having no controls
This commit is contained in:
parent
c00d3e809a
commit
efb71fc38e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user