Merge pull request #149 from Kingcom/LilyPad

Allow hotplugging XInput devices in LilyPad
This commit is contained in:
ramapcsx2 2014-07-16 18:55:10 +02:00
commit d12e5104e2
1 changed files with 2 additions and 5 deletions

View File

@ -212,12 +212,9 @@ 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));
}
}
pXInputEnable(0);
}