mirror of https://github.com/PCSX2/pcsx2.git
Merge pull request #149 from Kingcom/LilyPad
Allow hotplugging XInput devices in LilyPad
This commit is contained in:
commit
d12e5104e2
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue