Skip to content

Commit

Permalink
DInput: Seems sometimes we never check for pads on startup? Fix that.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Sep 27, 2023
1 parent d6a8bfd commit c8d7226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Windows/DinputDevice.cpp
Expand Up @@ -145,7 +145,7 @@ DinputDevice::DinputDevice(int devnum) {
return;
}

getDevices(false);
getDevices(needsCheck_);
if ( (devnum >= (int)devices.size()) || FAILED(getPDI()->CreateDevice(devices.at(devnum).guidInstance, &pJoystick, NULL)))
{
return;
Expand Down

0 comments on commit c8d7226

Please sign in to comment.