From b5e5dc58c2f2c232cabdaf3242c3023da1a2ea21 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 6 Apr 2015 02:28:58 +0200 Subject: [PATCH] (XDK1) Only add autodetect pad if pad inserted --- input/drivers_joypad/xdk_joypad.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/input/drivers_joypad/xdk_joypad.c b/input/drivers_joypad/xdk_joypad.c index 48ae2f611f..076c5439fc 100644 --- a/input/drivers_joypad/xdk_joypad.c +++ b/input/drivers_joypad/xdk_joypad.c @@ -57,26 +57,10 @@ static void xdk_joypad_autodetect_add(unsigned autoconf_pad) static bool xdk_joypad_init(void) { - unsigned autoconf_pad; - #ifdef _XBOX1 XInitDevices(0, NULL); - - dwDeviceMask = XGetDevices(XDEVICE_TYPE_GAMEPAD); - - /* Check the device status. */ - switch(XGetDeviceEnumerationStatus()) - { - case XDEVICE_ENUMERATION_IDLE: - RARCH_LOG("Input state status: XDEVICE_ENUMERATION_IDLE\n"); - break; - case XDEVICE_ENUMERATION_BUSY: - RARCH_LOG("Input state status: XDEVICE_ENUMERATION_BUSY\n"); - break; - } - - while(XGetDeviceEnumerationStatus() == XDEVICE_ENUMERATION_BUSY) {} #else + unsigned autoconf_pad; for (autoconf_pad = 0; autoconf_pad < MAX_USERS; autoconf_pad++) xdk_joypad_autodetect_add(autoconf_pad); #endif