Skip to content

Commit

Permalink
Merge pull request #149 from Kingcom/LilyPad
Browse files Browse the repository at this point in the history
Allow hotplugging XInput devices in LilyPad
  • Loading branch information
ramapcsx2 committed Jul 16, 2014
2 parents 90515fd + ce4dc4a commit d12e510
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugins/LilyPad/XInput.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit d12e510

Please sign in to comment.