From f71bbeae9f58895d99bf6b313815c0413012f414 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 19 Jan 2018 06:49:32 +0100 Subject: [PATCH] (XDK) Try to autodetect all pads at startup --- input/drivers_joypad/xdk_joypad.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/input/drivers_joypad/xdk_joypad.c b/input/drivers_joypad/xdk_joypad.c index 59482e814a..1983f6d4c6 100644 --- a/input/drivers_joypad/xdk_joypad.c +++ b/input/drivers_joypad/xdk_joypad.c @@ -55,13 +55,12 @@ static void xdk_joypad_autodetect_add(unsigned autoconf_pad) static bool xdk_joypad_init(void *data) { + unsigned autoconf_pad; #ifdef _XBOX1 XInitDevices(0, NULL); -#else - unsigned autoconf_pad; +#endif for (autoconf_pad = 0; autoconf_pad < MAX_USERS; autoconf_pad++) xdk_joypad_autodetect_add(autoconf_pad); -#endif (void)data;