From ce4dc4ae213f7460eda47fd531bddaade0cbb943 Mon Sep 17 00:00:00 2001 From: Kingcom Date: Wed, 16 Jul 2014 11:18:20 +0200 Subject: [PATCH] Allow hotplugging XInput devices in LilyPad --- plugins/LilyPad/XInput.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/LilyPad/XInput.cpp b/plugins/LilyPad/XInput.cpp index 924f7009dc..162d38f4a1 100644 --- a/plugins/LilyPad/XInput.cpp +++ b/plugins/LilyPad/XInput.cpp @@ -212,11 +212,8 @@ void EnumXInputDevices() { } pXInputEnable(1); for (i=0; i<4; i++) { - XINPUT_STATE state; - if (ERROR_SUCCESS == pXInputGetState(i, &state)) { - wsprintfW(temp, L"XInput Pad %i", i); - dm->AddDevice(new XInputDevice(i, temp)); - } + wsprintfW(temp, L"XInput Pad %i", i); + dm->AddDevice(new XInputDevice(i, temp)); } pXInputEnable(0); }