Merge pull request #7495 from m4xw/develop

[LIBNX] Initialize HID anyway, might fix randomly having no controls
This commit is contained in:
Twinaphex 2018-10-27 20:16:35 +02:00 committed by GitHub
commit 39df55fec8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

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