Skip to content

Commit

Permalink
Allow hotplugging XInput devices in LilyPad
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingcom committed Jul 16, 2014
1 parent 80b22ca commit ce4dc4a
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 ce4dc4a

Please sign in to comment.